, (*1)
CodeIgniter 3 Framework Pack
Codeigniter 3 complete solution pack with enhanced & modern framework extensions, (*2)
, (*3)
Codeigniter 3 is a great PHP framework with lite portability and high performance, but nowadays it is not so powerful and lacks of design pattern. There are still many maintenance requirements, even suitable development scenario for CodeIgniter 3, so this framework pack provides a total solution to enhance and modernize CodeIgniter 3 with collection of helpful extensions., (*4)
OUTLINE
REQUIREMENTS
This library requires the following:, (*5)
INSTALLATION
Run Composer in your CodeIgniter project under the folder \application
:, (*6)
composer require yidas/codeigniter-pack
Check CodeIgniter application/config/config.php
:, (*7)
$config['composer_autoload'] = TRUE;
You could customize the vendor path into $config['composer_autoload']
, (*8)
EXTENSIONS
PSR-4
ORM Model
RESTful API
Unit Test
Queue Worker
CONFIGURATION
The necessary configurations of the extensions are below:, (*9)
BEST PRACTICE
Server Environment
Codeigniter 3 server configuration for Nginx & Apache, (*10)
Application BaseUrl Setting (Set /
base for base_url
at least), (*11)
Application Structure
Codeigniter3/
โโโ application/ CI app root
โโโ cache/ CI cache
โโโ config/ CI app configurations
โโโ contracts PSR-4 Contracts (ex.Interfaces)
โโโ controllers/ CI app controllers
โโโ core/ CI app level core extension
โโโ helpers/ PSR-4/CI helpers (Recommended to use PSR-4 only)
โโโ hooks/ CI app hooks
โโโ language/ CI app language
โโโ libraries/ CI app components (One time loading)
โโโ logs/ CI app logs
โโโ models/ CI app models (ORM/Active-Record entities)
โโโ presenters/ PSR-4 Presenters
โโโ services/ PSR-4 Services
โโโ third_party/ CI app third party
โโโ vender/ Composer vendor
โโโ views/ CI app views
โโโ controller-name/ Each controller has it own view folder
โโโ action.php Each controller action has it own view file
โโโ widgets/ PSR-4 Widgets
โโโ assets/ Public assets
โโโ system/ CI Framework system