first version of the php client