News and announcements

Stack.PHP 0.5 Released!

Written for Stack.PHP by Nathan Osman on 2012-03-08

After months of hard work, Stack.PHP 0.5 is now ready to be released. Not much has changed between this version and the 0.5 beta 2 version. API::GetVersion() originally reported on the API version being used but now returns an array containing the version of Stack.PHP in use. The API version can be retrieved with API::GetAPIVersion() now.

This is also the last version of Stack.PHP that will support PHP 5.2. From this point on, Stack.PHP will officially support only PHP 5.3 and higher.

Stack.PHP 0.5 beta 1 Released

Written for Stack.PHP by Nathan Osman on 2012-01-21

The first beta in the 0.5 series is now available for download! What's new in this release? Well, first of all - all of the changes to methods, parameters, and the new authentication methods from version 2.0 of the API have made their way into Stack.PHP. There are also a number of new examples (quite a few aimed at beginners) that explain basic usage of the library by demonstrating how one might use Stack.PHP in a real-world application.

As always, the library is 100% documented and comes with a full test suite. Unfortunately due to the nature of authentication, the test suite does not cover those methods. However, the application ships with two examples that provide a means of testing both the implicit and explicit flow.

Stack.PHP 0.4 Released!

Written for Stack.PHP by Nathan Osman on 2011-12-09

Stack.PHP 0.4 has been released! This version is a total and complete overhaul of the entire library to make way for some new changes. Instead of offering classes grouped by API method category, Stack.PHP now offers a flexible hierarchy of classes that support chaining. This means that you can build your API request by appending methods to the end of a request object. There is a method for every single path element and parameter in the entire API.

The request classes are not the only addition, however. You also get an extremely flexible response class that allows you to step through multiple pages of data transparently without worrying about page numbering. Worried about request throttling? No problem - that feature is built into Stack.PHP.

The library also comes with two caching classes that use an SQL database and filestore to cache responses received from the API. Both classes take care of storage, retrieval, and cleanup so that you don't have to. If neither of these classes suit your needs, simply derive from CacheBase and implement your own class.

If all of that weren't enough, Stack.PHP offers some output helpers for web applications - you can generate a list of sites, a table of users sorted in various ways, and even offer your users an easy way of identifying themselves.

As was the case with previous versions of Stack.PHP, the classes and methods are fully documented. Stack.PHP has switched to Doxygen for generating documentation now and this means a very nice-looking set of HTML pages you can browse.

Get started with Stack.PHP today!

Added Date Functions

Written for Stack.PHP by Nathan Osman on 2010-06-28

stack.PHP now has a nice function that when given a timestamp will return a nicely formatted string relative to the current date/time.

14 of 4 results

Announcements