View on GitHub

Codeigniter-composer

A way to install CodeIgniter via composer (rogeriopradoj/codeigniter), if you are looking for the official repo, go to https://github.com/bcit-ci/CodeIgniter

Download this project as a .zip file Download this project as a tar.gz file

Packagist link https://packagist.org/packages/rogeriopradoj/codeigniter

Latest Stable Version PHP version Latest Unstable Version

Total: Total Downloads This month: Montly Downloads Today: Daily Downloads

Reference Status Dependent Packages Dependent Repositories

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) Version 2.x

composer require rogeriopradoj/codeigniter ^2

Or 3.x (3.0.3 in 2016-01-10) Version 3.x

composer require rogeriopradoj/codeigniter ^3

Copy the application and 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

That's all!

Note

If you plan to use composer autoload for your other dependencies (I suggest you do it):

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.

rogeriopradoj/codeigniter: Latest Stable Version

codeigniter/framework: Latest Stable Version