This package installs the offical CodeIgniter (version 3.1.*
) 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 version 5.6 or newer is recommended. It should work on 5.3.7 as well, but we strongly advise you NOT to run such old versions of PHP, because of potential security and performance issues, as well as missing features.
composer
command (See Composer Installation)- Git
$ composer create-project cahyadsn/ci-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.1.11
$ php bin/install.php gen-cli master
Modular Extensions (HMVC) for CodeIgniter 3:
$ php bin/install.php modular-extensions-hmvc 1.1.0
$ php bin/install.php ion-auth 3
$ php bin/install.php ion-auth-acl master
$ php bin/install.php restserver 3.1.4
$ php bin/install.php ci-log master
$ php bin/install.php ci-datatables master
CodeIgniter Developer Toolbar:
$ php bin/install.php codeigniter-develbar master
$ cd /path/to/codeigniter
$ bin/server.sh
$ cd /path/to/codeigniter
$ composer update
You must update files manually if files in application
folder or index.php
change. Check CodeIgniter User Guide.