andri-sudarmawijaya/codeigniter-project

Start any project with Codeigniter

v0.0.6 2016-12-13 17:24 UTC

This package is auto-updated.

Last update: 2024-11-25 00:11:28 UTC


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

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