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.
codeigniter/
├── application/
├── composer.json
├── composer.lock
├── public/
│ ├── .htaccess
│ └── index.php
└── vendor/
└── codeigniter/
└── framework/
└── system/
- PHP 5.3.2 or later
composer
command (See Composer Installation)- Git
$ composer create-project kenjis/codeigniter-composer-installer codeigniter
Above command installs public/.htaccess
to remove index.php
in your URL. If you don't need it, please remove it.
And it changes application/config/config.php
:
$config['composer_autoload'] = FALSE;
↓
$config['composer_autoload'] = realpath(APPPATH . '../vendor/autoload.php');
$config['index_page'] = 'index.php';
↓
$config['index_page'] = '';
If you want to install translations for system messages:
$ cd /path/to/codeigniter
$ php bin/install.php translations 3.0.0
$ php bin/install.php matches-cli master
$ php bin/install.php hmvc-modules master
$ php bin/install.php modular-extensions-hmvc codeigniter-3.x
$ php bin/install.php ion-auth 2
CodeIgniter3 Filename Checker:
$ php bin/install.php filename-checker master
$ bin/server.sh
$ cd /path/to/codeigniter
$ composer update
You must update files manually if files in application
folder or index.php
change.