Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/komputronika/codeigniter-installer
CodeIgniter Composer Installer
https://github.com/komputronika/codeigniter-installer
codeigniter composer-installer php
Last synced: 7 days ago
JSON representation
CodeIgniter Composer Installer
- Host: GitHub
- URL: https://github.com/komputronika/codeigniter-installer
- Owner: komputronika
- License: mit
- Created: 2017-10-05T03:38:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-28T01:29:52.000Z (over 6 years ago)
- Last Synced: 2024-11-14T14:25:54.206Z (2 months ago)
- Topics: codeigniter, composer-installer, php
- Language: PHP
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# CodeIgniter Installer
[![Latest Stable Version](https://poser.pugx.org/komputronika/codeigniter-installer/v/stable)](https://packagist.org/packages/komputronika/codeigniter-installer) [![Total Downloads](https://poser.pugx.org/komputronika/codeigniter-installer/downloads)](https://packagist.org/packages/komputronika/codeigniter-installer) [![License](https://poser.pugx.org/komputronika/codeigniter-installer/license)](https://packagist.org/packages/komputronika/codeigniter-installer)
This package installs the offical [CodeIgniter](https://github.com/bcit-ci/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/
├── .htaccess
├── index.php
├── application/
├── composer.json
├── composer.lock
└── vendor/
└── codeigniter/
└── framework/
└── system/
```## Requirements
* PHP 5.3.7 or later
* `composer` command (See [Composer Installation](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx))
* Git## How to Use
### Install CodeIgniter
```
$ composer create-project komputronika/codeigniter-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](https://github.com/avenirer/codeigniter-matches-cli):
```
$ php bin/install.php matches-cli master
```[CodeIgniter HMVC Modules](https://github.com/jenssegers/codeigniter-hmvc-modules):
```
$ php bin/install.php hmvc-modules master
```[Modular Extensions - HMVC](https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc):
```
$ php bin/install.php modular-extensions-hmvc codeigniter-3.x
```[Ion Auth](https://github.com/benedmunds/CodeIgniter-Ion-Auth):
```
$ php bin/install.php ion-auth 2
```[CodeIgniter3 Filename Checker](https://github.com/kenjis/codeigniter3-filename-checker):
```
$ php bin/install.php filename-checker master
```[CodeIgniter Rest Server](https://github.com/chriskacerguis/codeigniter-restserver):
```
$ php bin/install.php restserver 2.7.2
```
[CodeIgniter Developer Toolbar](https://github.com/JCSama/CodeIgniter-develbar):```
$ php bin/install.php codeigniter-develbar master
```[Codeigniter Model ORM](https://github.com/komputronika/codeigniter-model):
```
$ php bin/install.php codeigniter-model 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](http://www.codeigniter.com/user_guide/installation/upgrading.html).
## Reference
* [Composer Installation](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx)
* [CodeIgniter](https://github.com/bcit-ci/CodeIgniter)
* [Translations for CodeIgniter System](https://github.com/bcit-ci/codeigniter3-translations)## Related Projects for CodeIgniter 3.x
* [CLI for CodeIgniter 3.0](https://github.com/kenjis/codeigniter-cli)
* [CI PHPUnit Test](https://github.com/kenjis/ci-phpunit-test)
* [CodeIgniter Simple and Secure Twig](https://github.com/kenjis/codeigniter-ss-twig)
* [CodeIgniter Doctrine](https://github.com/kenjis/codeigniter-doctrine)
* [CodeIgniter Deployer](https://github.com/kenjis/codeigniter-deployer)
* [CodeIgniter3 Filename Checker](https://github.com/kenjis/codeigniter3-filename-checker)
* [CodeIgniter Widget (View Partial) Sample](https://github.com/kenjis/codeigniter-widgets)