Download the PHP package ngthuc/ci-composer without Composer
On this page you can find all versions of the php package ngthuc/ci-composer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ngthuc/ci-composer
More information about ngthuc/ci-composer
Files in ngthuc/ci-composer
Download ngthuc/ci-composer
More information about ngthuc/ci-composer
Files in ngthuc/ci-composer
Vendor ngthuc
Package ci-composer
Short Description The CodeIgniter framework with composer, include REST server
License MIT
Homepage https://ngthucdotcom.github.io/ci-composer/
Package ci-composer
Short Description The CodeIgniter framework with composer, include REST server
License MIT
Homepage https://ngthucdotcom.github.io/ci-composer/
Please rate this library. Is it a good library?
Informations about the package ci-composer
Server Requirements
- OS: Linux 18.04 (recommended)
- PHP: PHP 5.6 or newer
Installation
Create project
- Run composer create project (for init new project) or update (for reload dependencies on new environment) via command line at root folder
- Create project
- Reload dependencies
- Create .env file same [.]env to set-up database
Require project into another project
- Run composer require project (for init new project) or update (for reload dependencies on new environment) via command line at root folder
- Require project
- Reload dependencies
-
Move all files from
/vendor/ngthuc/ci-composer/app/
to the root folder structure: - Create .env file same [.]env to set-up database
Usage
- Use Apache - MySQL/MariaDB - PHP (AMP) stack as a software (e.g., XAMPP/AMPPS/WAMP)
- Install AMP stack packages on Linux or Windows, and move project to root directory of Apache (e.g.,
www/
) and use built-in web server (with PHP 5.4.0 or newer) via command:
Usage RestAPI
CodeIgniter Rest Server is available on package.
Step 1: Add this to your controller (should be before any of your code)
Step 2: Extend your controller
Basic GET example
Here is a basic example. This controller, which should be saved as Api.php
, can be called in two ways:
http://domain/api/users/
will return the list of all usershttp://domain/api/users/id/1
will only return information about the user with id = 1
Author
- Nguyen Thuc
- Homepage: ngthuc.com
- Packagist: Packaged by ngthuc
- Email: contact[at]ngthuc.com
Credit
This project using projects or dependencies:
- CodeIgniter by B.C. Institute of Technology (originally from EllisLab).
- PHP dotenv by vlucas.
- CodeIgniter RestServer by chriskacerguis
License
CodeIgniter Core Custom is licensed under MIT License.
All versions of ci-composer with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
codeigniter/framework Version ^3.1
vlucas/phpdotenv Version ^4.0
chriskacerguis/codeigniter-restserver Version ^3.1
codeigniter/framework Version ^3.1
vlucas/phpdotenv Version ^4.0
chriskacerguis/codeigniter-restserver Version ^3.1
The package ngthuc/ci-composer contains the following files
Loading the files please wait ....