Rick Seymour

Police.uk API PHP Curl Class

Police.uk has a JSON based REST API web service to access UK crime data. Attached is a PHP class to access the API.  The class is object based, uses curl and returns PHP Associative Arrays (or boolean false)

Update: 6/2 – MySQL schema & import functions added.

 

https://github.com/RickSeymour/Police.uk-API-PHP-Curl-Class

 

Code is licensed as HireWare – if you like it, Hire me!!

Please give me a mention if you use it, fork the code and let me know of any improvements (and comment below of course)

Leave your Reply:

Comments on:

Police.uk API PHP Curl Class
4 comments
  1. ABc

    How long does it take to get the username / password back from the signup page? Been waiting for 8 hours now.

    February 8, 2011 at 7:53 pm Reply
    • Rick Seymour

      I got my username within an hour or so… but that was really soon after launch… give them a call if you are desperate ;-)
      Drop me a message .. let me know what you are thinking about developing…
      Make sure you upload your improvements to the PHP class

      February 8, 2011 at 9:35 pm Reply
    • Rick Seymour

      No problem at all….. I’ve merged all your changes back into Master & added the MySQL schema that I use to store the Police.Uk crime data…. I hear that the zip files will be deleted every month!!
      If you do write an app, do let me know :)

      February 6, 2011 at 5:29 pm Reply