2017 © Pedro Pelรกez
 

library codeigniter-project-seed

Package to install Multiple Application CodeIgniter3 in one project via Composer with secure folder structure.

image

quannda/codeigniter-project-seed

Package to install Multiple Application CodeIgniter3 in one project via Composer with secure folder structure.

  • Sunday, April 23, 2017
  • by quannda
  • Repository
  • 1 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 5 % Grown

The README.md

Base on an awesome work from kenjis/codeigniter-composer-installer

CodeIgniter Composer Installer

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

This package installs the offical CodeIgniter (version 3.1.*) with multiple applications project in secure folder structure via Composer., (*2)

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

You can update CodeIgniter system folder to latest version with one command., (*4)

Folder Structure

codeigniter/
โ”œโ”€โ”€ application/frontend
โ”œโ”€โ”€ application/backend (*)
โ”œโ”€โ”€ application/api (*)
โ”œโ”€โ”€ composer.json
โ”œโ”€โ”€ composer.lock
โ”œโ”€โ”€ public/
โ”‚ย ย  โ”œโ”€โ”€ .htaccess
โ”‚ย ย  โ””โ”€โ”€ index.php
โ””โ”€โ”€ vendor/
    โ””โ”€โ”€ codeigniter/
     ย ย  โ””โ”€โ”€ framework/
     ย ย      โ””โ”€โ”€ system/

You can define yours applications by clone then change composer.json with key, (*5)

{
  "name": "Your package name",
  "config": {
      "apps": {
          "backend":  {
            "source": "application/backend",
            "doc_root": "public_html/cpanel"
          },
          "frontend": {
            "source": "application/frontend",
            "doc_root": "public_html"
          },
          "api": {
            "source": "application/api",
            "doc_root": "public_html/api"
          }
      }
  }
}

Requirements

How to Use

Install CodeIgniter

$ composer create-project quannda/codeigniter-project-seed codeigniter

Above command installs draft source code structure for project in folder codeigniter, with sample 3 applications config in composer.json. Please take a look and make any change if necessary. Then use, (*6)

cd codeigniter && composer install

Above command installs public/.htaccess to remove index.php in your URL. If you don't need it, please remove it., (*7)

And it changes each application/{app_name}/config/config.php:, (*8)

$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:, (*9)

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

Install Third Party Libraries

Codeigniter Matches CLI:, (*10)

$ php bin/install.php matches-cli master

CodeIgniter HMVC Modules:, (*11)

$ php bin/install.php hmvc-modules master

Modular Extensions - HMVC:, (*12)

$ php bin/install.php modular-extensions-hmvc codeigniter-3.x

Ion Auth:, (*13)

$ php bin/install.php ion-auth 2

CodeIgniter3 Filename Checker:, (*14)

$ php bin/install.php filename-checker master

CodeIgniter Rest Server:, (*15)

$ php bin/install.php restserver 2.7.2

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., (*16)

Reference

The Versions

23/04 2017

dev-master

9999999-dev https://github.com/quannda/codeigniter-project-seed

Package to install Multiple Application CodeIgniter3 in one project via Composer with secure folder structure.

  Sources   Download

MIT

by Quan NDA

composer installer codeigniter

23/04 2017

v0.1.4

0.1.4.0 https://github.com/quannda/codeigniter-project-seed

Package to install Multiple Application CodeIgniter3 in one project via Composer with secure folder structure.

  Sources   Download

MIT

by Quan NDA

composer installer codeigniter

23/04 2017

v0.1.3

0.1.3.0 https://github.com/quannda/codeigniter-project-seed

Package to install Multiple Application CodeIgniter3 in one project via Composer with secure folder structure.

  Sources   Download

MIT

The Requires

 

by Quan NDA

composer installer codeigniter

23/04 2017

v0.1.2

0.1.2.0 https://github.com/quannda/codeigniter-project-seed

Package to install Multiple Application CodeIgniter3 in one project via Composer with secure folder structure.

  Sources   Download

MIT

The Requires

 

by Quan NDA

composer installer codeigniter

23/04 2017

v0.1.1

0.1.1.0 https://github.com/quannda/codeigniter-project-seed

Package to install Multiple Application CodeIgniter3 in one project via Composer with secure folder structure.

  Sources   Download

MIT

The Requires

 

by Quan NDA

composer installer codeigniter

23/04 2017

v0.1.0

0.1.0.0 https://github.com/quannda/codeigniter-project-seed

Package to install Multiple Application CodeIgniter3 in one project via Composer with secure folder structure.

  Sources   Download

MIT

The Requires

 

by Quan NDA

composer installer codeigniter