• 27th May 2010 -By Vinu Thomas

    Planning on starting a project with REST webservices? You’ve gotta check out this new framework called FRAPI. This API framework built in PHP eases development of REST webservices, by allowing you to add actions, responses and even create users and assign API keys to them for accessing the services you create. Here’s a video showing an overview of FRAPI and how simple it is to deploy and manage webservices.

    This project is still quite new and their documentation is down to the bare minimum. They do have the required documentation for you you’ll need to get your hands dirty with FRAPI. First you’ll have to download the sources and set it up on your own. One you’ve downloaded the files and setup the directory permissions, you’ll also have to make the Apache Virtual host settings to get FRAPI to start working.

    FRAPI has the following requirements for it to run:

    • PHP 5.2.2 or later
    • APC: Required for caching of actions, errors, etc.
    • HTTP: (http://pecl.php.net/pecl_http
    • PEAR: (http://pear.php.net)
    • PEAR::HTTP_Request2: This could be replaced by pecl_http however it is used in the bundled ArmChair package which is used to access CouchDB (http://pear.php.net/HTTP_Request2)

    Some of the advantages I see after playing around with FRAPI is that it auto-generates the code skeleton for you to work on so you just have to go fill in the blanks to create your service. You also don’t have to worry about transfoming the your data into different formats, FRAPI supports JSON, XML, PHP, and plain text natively. This enables you to make your webservices cross-platform and even power mobile apps. You also don’t have to tweak around with code which handles http requests and responses while creating your webservices.

    For more information on this project, head over to their site  getfrapi.com or their project page on github.

    Reblog this post [with Zemanta]

  • 4 Comments to “Create RESTful Webservices in minutes with FRAPI”

    Leave a Reply