Nothing better than official and easy way. Go to http://getcomposer.org/doc/00-intro.md#installation and follow the instructions there.
Versions for all major operating systems are available (I mean, even Windows ;-) ).
composer require rogeriopradoj/codeigniter ^2
composer require rogeriopradoj/codeigniter ^3
index.php out of vendor folder
$ cp -r vendor/rogeriopradoj/codeigniter/application `pwd` $ cp vendor/rogeriopradoj/codeigniter/index.php `pwd`
Update your front controller to system folder from composer
sed -i.bak "s/$system_path\= 'system';/$system_path\='vendor\/rogeriopradoj\/codeigniter\/system';/" \ index.php \ && rm index.php.bak
If you plan to use composer autoload for your other dependencies (I suggest you do it):
- edit your front controller (index.php)
- below section CUSTOM CONFIG VALUES, insert
About the tags, releases and synchronization with official repo
The official repository of CodeIgniter framework is https://github.com/bcit-ci/CodeIgniter. However, they don't provide composer installation for 2.x version of the framework. That's why rogeriopradoj/codeigniter was created.
While the official doesn't provide it, this package (rogeriopradoj/codeigniter) will be maintained.
Sync with official repo
The synchronization will be done from time to time. Please open a issue if it gets too much out of sync.