https://packagist.org/packages/rogeriopradoj/codeigniter
Usage
Install composer
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 ;-) ).
Require Codeigniter
Or 2.x (2.2.6 in 2016-01-10)
composer require rogeriopradoj/codeigniter ^2
Or 3.x (3.0.3 in 2016-01-10)
composer require rogeriopradoj/codeigniter ^3
application
and index.php
out of vendor folder
Copy the $ 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
That's all!
Note
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
require_once 'vendor/autoload.php';
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.
Releases
If you want to be cool, you should use one of the tags/releases provided in Packagist, the latest (according to SemVer) should be the one I should get.
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.