Skip to content
Create any project with Codeigniter
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

CodeIgniter Composer Project

Latest Stable Version Total Downloads Latest Unstable Version License

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.

Extras Packages


How to Use

Install CodeIgniter Project

$ composer create-project Eihror/codeigniter-project project_folder

Run Scripts to create a Codeigniter Basic Structure ( Only if system don´t run this automatically )

$ cd /path/to/project_folder
$ composer run-script post-install-cmd

Folder Final Structure

├── 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'] = '';

Update CodeIgniter

You can update CodeIgniter system folder to latest version with one command.

$ cd /path/to/project_folder
$ composer update

Install Translation Messages

If you want to install translations for system messages:

$ cd /path/to/project_folder
$ php bin/install.php translations 3.0.0
You can’t perform that action at this time.