Skip to content

sabri-elgueder/codeigniter-composer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The CodeIgniter framework 3 Composer Installer

Latest Stable Version Total Downloads Latest Unstable Version License

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

Note: If you want to install CodeIgniter4 (under development), see https://github.com/sabri-elgueder/codeigniter-composer/tree/4.x.

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

Folder Structure

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

Requirements

How to Use

Install CodeIgniter

$ composer create-project satoripophq/codeigniter-composer codeigniter

Above command installs public/.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'] = '';

Install Translations for System Messages

If you want to install translations for system messages:

$ cd /path/to/codeigniter
$ php bin/install.php translations 3.1.0

Install Third Party Libraries

Codeigniter Matches CLI:

$ php bin/install.php matches-cli master

CodeIgniter HMVC Modules:

$ php bin/install.php hmvc-modules master

Modular Extensions - HMVC:

$ php bin/install.php modular-extensions-hmvc master

CodeIgniter Template Library:

$ php bin/install.php codeigniter-template-library master

Ion Auth:

$ php bin/install.php ion-auth 2

CodeIgniter3 Filename Checker:

$ php bin/install.php filename-checker master

CodeIgniter Rest Server:

$ php bin/install.php restserver 2.7.2

Update CodeIgniter

$ cd /path/to/codeigniter
$ composer update

You must update files manually if files in application folder or index.php change. Check CodeIgniter User Guide.

Reference

About

Package to install CodeIgniter via Composer

Resources

License

Stars

Watchers

Forks

Packages

No packages published