complete php client sample