Open Source PHP API Framework: FRAPI
Once we build a web application, creating an API for it and enabling anyone to interact with the service easily is a great way to help the application grow.
However, it can be a time-consuming process to build the API from scratch (if you want to build one, check: How To Create An API? -10 Tutorials-).
And this is where FRAPI, an open source PHP API framework for building an API for any web application very quickly, comes in.
The framework is RESTful, simple and only focuses on building the API. It generates the skeleton for you to handle REST calls and you only need to put your business logic in it.
From a web-based interface, it enables you to create the methods, error codes and messages for your API.
Once finished, the PHP files for the methods are created automatically where you can easily add any extra functions.
FRAPI also auto-generates the documentation for the API using the "description" fields of each function.
Website: http://getfrapi.com/
Download: http://github.com/frapi/frapi
- Tags:
API Php REST
- Filed under: Extras, Other License, Other Scripts/Apps.
- 8 Comments












8 Responses for "Open Source PHP API Framework: FRAPI"
I love resources that help me, that aren’t design resources. This makes a lot of what I do faster and less lines of code. Well thought out! FRAPI-ccino
Is it also working for JSON and basic XML like eBuildy does?
@Scott,
).
Very nice to hear that the resources help (btw, if FRAPI developers will read these comments, I’m sure they’ll be using FRAPI-ccino for at least to name a future feature
@Thomas,
Yes it can generate both XML and JSON besides PHP and plain text.
Hey there @Scott, nice to see such interest so rapidly
Looking forward in hearing how you like it.
@Thomas As @Umut said it handles automatically XML, JSON, PHP but also one I use for debugging a lot which is “printr” output
Try accessing your URI like http://api.local/routename.printr
I am going to be writing some documentation in the next week on how to overwrite the Custom XML output so you can make your own
I can’t wait to give this a try when I start developing API’s.
Luracast Restler ( http://luracast.com/products/restler ) is an alternative for FRAPI and Web Resources Depot has an article about it at http://www.webresourcesdepot.com/transform-php-classes-methods-into-a-restful-api-restler/
Hey i am using xampp 1.7.0 and trying to setup FRAPI but it is generating
an error.
[Virtual host code]
NameVirtualHost *:80
DocumentRoot “C:/xampp/htdocs”
ServerName localhost
# DirectoryIndex
# ServerAdmin admin@localhost
# This should be omitted in the production environment
SetEnv APPLICATION_ENV development
DocumentRoot “C:/xampp/htdocs/frapi/frapi/src/frapi/admin/public”
#
ServerName admin.localhost
# Options None
# AllowOverride All
# Order deny,allow
#Allow from All
#
When i run on server http://admin.localhost
it generate an error
[Apache HTTP Server
Apache HTTP Server has encountered a problem and needs to close. We are sorry for the inconvenience..........]
How to resolve this please Help.
Thanks
I am developing a framework for creating a REST API using PHP and MySQL.
Development has only just begun and I’m looking for contributors, please visit the GitHub project:
https://github.com/PlugInStudios/api-framework