Project: Mashape PHP Library
Jun 15th, 2011These are some changes I made on the OpenSource Mashape PHP Library.
Warning: this is not ready to be used, there is a lot more work to do to make it stable, this is just a proof of concept.
Change: annotations instead of XML
Declare your API and routing pattern right into your PHP code:
Change: front controller
In the original Mashape PHP Library, the front controller is api.php
which is also the file where the user is supposed to write the API. In
this version, the front controller is index.php
and the user does not
need to open or edit it. He only has to edit api.php
which can not be
more simple:
Original code
Forked from Mashape/mashape-php-library
The Mashape PHP Library is:
- it’s a dead simple PHP framework for generating RESTful APIs
- it supports everything from custom routes to custom errors, following the DRY (Don’t Repeat Yourself) principle: reuse your existing code
- it’s fully integrated with Mashape: distribute your components, get traction and make money!
See the complete documentation of the library.