andri-sudarmawijaya / codeigniter-project
Start any project with Codeigniter
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Type:project
pkg:composer/andri-sudarmawijaya/codeigniter-project
Requires
- php: >=5.5.9
- cocur/slugify: ^2.0
- codeigniter/framework: ^3.0
- eihror/compress-image: ^0.0.4
Requires (Dev)
- mikey179/vfsstream: ^1.6
README
This package installs the offical CodeIgniter (version 3.1.*) 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
- 
Slugify (version 2.0).
- 
Compress Image (version 0.0.4).
Requirements
- PHP 5.5.9 or later
- composercommand (See Composer Installation)
- Git
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