PHP is one of the most popular programming languages used mainly for server-side scripting of web applications (however, it may be used also as a general purpose language). It is relatively easy to learn and simple to use with thousands of popular applications written in it.
Apache Thrift's compiler offers a bunch of options for PHP. Run the following command to see them:
$ thrift --help
Look for the information about PHP generators given below:
php (PHP): inlined: Generate PHP inlined files server: Generate PHP server stubs oop: Generate PHP with object oriented subclasses rest: Generate PHP REST processors nsglobal=NAME: Set global namespace validate: Generate PHP validator methods json: Generate JsonSerializable classes (requires PHP >= 5.4)
Some of the options may cater to your project's specific needs. Their descriptions may be cryptic, so here's some extra explanation...