Skip to content

eihror/codeigniter-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Requirements

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

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

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