PHP RESTful Personal Api
Accompanying blog post
A simple personal RESTful API written in php. It returns data in JSON format. It needs an api key to work, and the key currently allows 40 api calls per day. It is build arount the logic of id's as a means to fetch differently groupped information.
It doesn't use a database, because that would make it more difficult that in needed to be. Due to this fact, it is easier to implement but difficult to maintain and scale because all the information need to be hardcoded into the code. The
parse.php file is just a JSON parser to parse and show the data returned from the api.
If you want to use it you just have to place the
api.php files somewhere in your web server. To call the api simply point your browser to
The code is fairly commented so you shouldn't have any problems using it. Just make sure to add your information before using it.
Disclaimer: A lot of starter code has been taken from here:
http://blog.ijasoneverett.com/2013/02/rest-api-a-simple-php-tutorial/. So original credit to the author of that code.