As the server is running, we now need to implement the clients. You should be familiar with this part, so I will just remind you of the most important parts, leaving something for you as homework.
When creating the client in PHP, we go through the standard procedure of including the required files, registering namespaces, and creating the connection:
#!/usr/bin/env php <?php define('THRIFT_PHP_LIB', __DIR__.'/thrift-0.9.2/lib/php/lib'); define('GEN_PHP_DIR', __DIR__.'/gen-php'); require_once THRIFT_PHP_LIB.'/Thrift/ClassLoader/ThriftClassLoader.php'; use Thrift\ClassLoader\ThriftClassLoader; $loader = new ThriftClassLoader(); $loader->registerNamespace('Thrift', THRIFT_PHP_LIB); // register your namespace $loader->registerDefinition('mytoolbox', GEN_PHP_DIR); $loader->registerDefinition('mybase', GEN_PHP_DIR); $loader->register(); // include here the protocols and transports that you need use Thrift\Protocol\TBinaryProtocol...