Open 311 PHP Library

The DC City Government, under the direction of the Office of the Chief Technology Officer, has opened up it’s 311 system to developers via the Open 311 API. Read more about this openness initiative here.

We have built this PHP class as an extension to the Sunlight Labs PHP library. You must download both and include class.open311.php class after including the class.sunlightlabs.php file.

The file includes two classes, OpenDc311 and OpenDc311Geocode.

Documentation

This library is PHP 5.2+ ONLY. The JSON support is built into versions of PHP including and after this version. In addition, you must have cURL compiled into PHP. Most versions of PHP these days will meet these guidelines, but check with your host if you are not sure.

Download:
SVN: http://sunlight-api.googlecode.com/svn/tags/open311/