Download the PHP package meksiabdou/ci4-restful without Composer
On this page you can find all versions of the php package meksiabdou/ci4-restful. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package ci4-restful
CodeIgniter 4 RESTful & Auth Api
CodeIgniter 4 RESTful & Auth Api Resource Base Controller
This RESTful API extension is collected into composer require meksiabdou/ci4-restful which is a complete solution for Codeigniter framework.
Features
-
Auth use package myth/auth
-
RESTful API implementation
- Logs Requests
OUTLINE
- Demonstration
- RESTful Create Function
- Requirements
- Installation
- Configuration
DEMONSTRATION
Output with status 200 OK:
RESTful Create Function
Output with status 201:
Output with error
Output with status 403 Forbidden:
REQUIREMENTS
This library requires the following:
- PHP 7.4+
- CodeIgniter 4+
- agungsugiarto/codeigniter4-cors
-
myth/auth
INSTALLATION
Run Composer in your Codeigniter project:
CONFIGURATION
Config CORS agungsugiarto/codeigniter4-cors
To allow CORS for all your routes, first register CorsFilter.php filter at the top of the $aliases property of App/Config/Filter.php class:
Restrict routes based on their URI pattern by editing app/Config/Filters.php and adding them to the $filters array,
Config Public Token
To access public routes generate token and add $token_app to app\Config\App.php
Create a controller to extend CI4Restful\Helpers\RestServer,
Restful Auth API
HttpRequest (public routes)
HttpRequest (private route)
All versions of ci4-restful with dependencies
agungsugiarto/codeigniter4-cors Version ^v2.0.0
myth/auth Version ^v1.0.1