This package installs the offical CodeIgniter (version 3.0.*
) with secure folder structure via Composer.
Also, this package is based on Kenji´s project (v0.4.2), please check his other project too.
-
Slugify (version
2.0
). -
Compress Image (version
0.0.4
).
- PHP 5.5.9 or later
composer
command (See Composer Installation)- Git
$ composer create-project Eihror/codeigniter-project project_folder
$ cd /path/to/project_folder
$ composer run-script post-install-cmd
project_folder/
├── application/
├── composer.json
├── composer.lock
├── .htaccess
├── index.php
└── vendor/
└── eihror/
└── compress-image/
└── cocur/
└── slugify/
└── codeigniter/
└── framework/
└── system/
Above command installs .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'] = '';
You can update CodeIgniter system folder to latest version with one command.
$ cd /path/to/project_folder
$ composer update
If you want to install translations for system messages:
$ cd /path/to/project_folder
$ php bin/install.php translations 3.0.0