Stack.PHP is a library for accessing the Stack Exchange API with PHP. Stack.PHP is designed to make your application development easier. You don't need a bunch of external third party libraries or frameworks. You don't need to understand cryptography. All you need is a basic understanding of PHP code and Stack.PHP.
Why Stack.PHP?
We know you have a choice when it comes to writing applications that access the Stack Exchange API: use Stack.PHP, use another library, or write your own code. Here's why we think you should stick with Stack.PHP:
-
Stack.PHP provides a full implementation: Stack.PHP implements everything you need to access the API. You don't need to worry that a particular method is not available or a particular parameter is not supported.
-
Stack.PHP provides flexible caching classes: If your site receives a high amount of traffic then you know how important caching is. Stack.PHP provides both an SQL and filesystem-based caching class that caches data for short amounts of time to reduce the number of requests to the API.
-
Stack.PHP takes the guesswork out of building requests: You don't need to memorize the order of arguments to particular methods. Instead, Stack.PHP exposes each parameter as a method that can be chained with other methods like this:
API::Site('stackapps')->Users()->SortByReputation();
-
Stack.PHP makes it easy to step through paged data: Stepping through pages of data doesn't have to be difficult. In fact, Stack.PHP will automatically fetch new pages as necessary as you step through the data.
-
Stack.PHP ships with everything you need for OAuth 2.0: You don't need a third-party library to add OAuth support to Stack.PHP - the necessary code is included. OAuth 2.0 methods work out of the box.
-
Stack.PHP works: Stack.PHP comes with a full and comprehensive test suite that produces an HTML page containing detailed results of all tests. You can view the results of the last test here.