In this post I’ll outline how to setup and connect a thrift client in PHP. If you’d like to learn how to setup and run a thrift server please see my friend Mike Cvet’s post here on setting up a C++ thrift server. You’re in a meeting and some Sr. Dev from the systems or backend team says: “Great! just connect to my service via thrift, we already handle all the db connections and most of the caching
![Apache Thrift Tutorial – A PHP client](https://cdn-ak-scissors.b.st-hatena.com/image/square/087c13089b18f2ba19a590fc4c91bcd379335fff/height=288;version=1;width=512/https%3A%2F%2Fchanian2.files.wordpress.com%2F2010%2F05%2Ffolder1.png)