Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

codeigniter-composer-installer

> 编程语言
Open source

Installs the offical CodeIgniter 3 with secure folder structure via Composer

373 stars0 likes0 views
WebsiteGitHub

About

Installs the offical CodeIgniter 3 with secure folder structure via Composer

CodeIgniter Composer Installer

This package installs the offical CodeIgniter (version 3.1.*) 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/
│   ├── .htaccess
│   └── index.php
└── vendor/
    └── codeigniter/
        └── framework/
            └── system/

Requirements

  • PHP 5.3.7 or later
  • composer command (See Composer Installation)
  • Git

How to Use

Install CodeIgniter

$ composer create-project kenjis/codeigniter-composer-installer 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 codeigniter-3.x

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

CodeIgniter Developer Toolbar:

$ php bin/install.php codeigniter-develbar master

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

$ cd /path/to/codeigniter
$ bin/server.sh

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

  • Composer Installation
  • CodeIgniter
  • Translations for CodeIgniter System

Related Projects for CodeIgniter 3.x

  • Cli for CodeIgniter 3.0
  • ci-phpunit-test
  • CodeIgniter Simple and Secure Twig
  • CodeIgniter Doctrine
  • CodeIgniter Deployer
  • CodeIgniter3 Filename Checker
  • CodeIgniter Widget (View Partial) Sample

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPcodeignitercodeigniter3composerhacktoberfest

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言