CodeIgniter Composer Installer
This package installs the offical CodeIgniter (version 3.0.*
) with secure folder structure via Composer.
You can update CodeIgniter system folder to latest version with one command.
Folder Structure
codeigniter/
├── application/
├── composer.json
├── composer.lock
├── public/
│ └── index.php
└── vendor/
└── codeigniter/
└── framework/
└── system/
Requirements
- PHP 5.3.2 or later
composer
command (See Composer Installation)- Git
How to Use
Install CodeIgniter
$ composer create-project kenjis/codeigniter-composer-installer codeigniter
If you want to install translations for system messages (requires shell):
$ cd /path/to/codeigniter
$ bin/install-translations.sh
Install Third Party Libraries (Requires Shell)
$ bin/install-codeigniter-matches-cli.sh
$ bin/install-codeigniter-hmvc-modules.sh
Run PHP built-in server (PHP 5.4 or later)
$ cd /path/to/codeigniter
$ php -S localhost:8000 -t public/ bin/router.php
Update CodeIgniter
$ cd /path/to/codeigniter
$ composer update
You must update files manually if files in application
folder or index.php
change.