Feature php client

Reworked PHP client