korditpteltd / kd-cakephp-restful
KORDIT CakePHP Restful Plugin
Installs: 357
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 3
Open Issues: 0
Type:cakephp-plugin
Requires
- admad/cakephp-jwt-auth: ^2.0
- cakephp/cakephp: >=3.3.0
Requires (Dev)
- cakephp/cakephp-codesniffer: ^2.3
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2024-11-29 05:51:28 UTC
README
KORDIT CakePHP V3 Restful Plugin.
Requirements
The master
branch has the following requirements:
Installation
Install this plugin using composer
from your CakePHP V3 Project ROOT directory (where the composer.json
file is located).
- Edit
composer.json
file by adding the following lines:
"repositories":[ { "type": "git", "url": "git@github.com:mohamednizar/kd-cakephp-restful.git" } ]
- Example
composer.json
after adding required lines:
{ "name": "korditpteltd/openemis-phpoe", "description": "KORDIT OpenEMIS CORE", "homepage": "https://demo.openemis.org/core", "type": "project", "license": "GPL-2.0", "require": { "php": ">=5.4.16", "cakephp/cakephp": "3.2.6" }, "scripts": { "post-install-cmd": "App\\Console\\Installer::postInstall", "post-autoload-dump": "Cake\\Composer\\Installer\\PluginInstaller::postAutoloadDump" }, "minimum-stability": "dev", "prefer-stable": true, "repositories":[ { "type": "git", "url": "git@github.com:mohamednizar/kd-cakephp-restful.git" } ] }
- If
composer
is not installed globally, issue the following command on console/terminal:
php composer.phar require korditpteltd/kd-cakephp-restful "*"
- If
composer
is installed globally, issue the following command instead:
composer require korditpteltd/kd-cakephp-restful "*"
Configuration
- Load this plugin by adding the following line in your application
bootstrap.php
file.
Plugin::load('Restful', ['bootstrap' => true, 'routes' => true, 'autoload' => true]);
** boostrap
parameter is set to true so that this package bootstrap file will be loaded during the application life-cycle boot up process.
** This package's boostrap.php will then include its routes configurations.
Usage
After configuration was done, go to the plugin documentation from your application url to read more.
http://<your-domain-name>/restful/doc or https://<your-domain-name>/restful/doc