Download the PHP package czahoo/api-framework without Composer
On this page you can find all versions of the php package czahoo/api-framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package api-framework
Framework for API
After installing module using composer, you need to follow steps below:
- Add content of src/.htaccess to your .htaccess file or just copy it to your root directory if u don't have one
- Create basic folder for your API (by default it should be named 'Api')
- Create application folder inside your Api (by default it should be named 'App')
- Create Routing.php file where you put your routing config with basic structure as defined below:
- Implement 'show' method in your basic controller which will be called by default if no other method is passed
- Create index.php file with code as presented below
- To call default method in your basic controller type yoursitename.com/api/ (for external api) or yoursitename.com/internal_api/ (for internal api)
- To call method 'test' in your custom controller for internal api type yoursitename.com/api/custom_route/test
File: index.php
File: Routing.php
All versions of api-framework with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package czahoo/api-framework contains the following files
Loading the files please wait ....