/codeigniter-composer-installer

Installs the offical CodeIgniter 3 with secure folder structure via Composer

Primary LanguagePHPMIT LicenseMIT

CodeIgniter Composer Installer

Latest Stable Version Total Downloads Latest Unstable Version License

This package installs the offical CodeIgniter (version 3.0.*) with secure folder structure via Composer.

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

Folder Structure

codeigniter/
├── application/
├── composer.json
├── composer.lock
├── public/
│   └── index.php
└── vendor/
    └── codeigniter/
        └── framework/
            └── system/

Requirements

How to Use

Install CodeIgniter

$ composer create-project kenjis/codeigniter-composer-installer codeigniter

If you want to install translations for system messages (requires shell):

$ cd /path/to/codeigniter
$ bin/install-translations.sh

Install Third Party Libraries (Requires Shell)

Codeigniter Matches CLI:

$ bin/install-codeigniter-matches-cli.sh

CodeIgniter HMVC Modules:

$ bin/install-codeigniter-hmvc-modules.sh

Run PHP built-in server (PHP 5.4 or later)

$ cd /path/to/codeigniter
$ php -S localhost:8000 -t public/ bin/router.php

Update CodeIgniter

$ cd /path/to/codeigniter
$ composer update

You must update files manually if files in application folder or index.php change.

Reference

Third Party Libraries

Related