PHPackages                             nguyenanhung/codeigniter-framework - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. nguyenanhung/codeigniter-framework

ActiveLibrary[Framework](/categories/framework)

nguyenanhung/codeigniter-framework
==================================

The CodeIgniter Framework - v3.2.0

v3.2.0.41(1mo ago)86.7k54MITPHPPHP &gt;=5.6

Since Dec 5Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/nguyenanhung/codeigniter-framework)[ Packagist](https://packagist.org/packages/nguyenanhung/codeigniter-framework)[ Docs](https://codeigniter.com)[ RSS](/packages/nguyenanhung-codeigniter-framework/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (6)Versions (133)Used By (4)

CodeIgniter v3.2.x - vendor packages build
==========================================

[](#codeigniter-v32x---vendor-packages-build)

[![Latest Stable Version](https://camo.githubusercontent.com/f7b150e9905a74a1e147d84cceee6e5ff5c570b43fa8e5e438a5055828adf2b5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e677579656e616e68756e672f636f646569676e697465722d6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nguyenanhung/codeigniter-framework)[![Total Downloads](https://camo.githubusercontent.com/4aa3757255bc63bc7fcc01076325446d92935b1ad92ab3d3fed4ea9d941f511c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e677579656e616e68756e672f636f646569676e697465722d6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nguyenanhung/codeigniter-framework)[![Daily Downloads](https://camo.githubusercontent.com/dc294904417ad7ea749a360bade40f3988119ec398fed055fa1fe69f4e643931/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64642f6e677579656e616e68756e672f636f646569676e697465722d6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nguyenanhung/codeigniter-framework)[![Monthly Downloads](https://camo.githubusercontent.com/852d876e520c01c89efbc41f8f2c0ef6111c47d20a325562d9ae9b0b8fd3d709/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6e677579656e616e68756e672f636f646569676e697465722d6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nguyenanhung/codeigniter-framework)[![License](https://camo.githubusercontent.com/2abb0ca33bab07d030ff6da0a5e559cf260116718d189c0a1db0df5fd63e8d85/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e677579656e616e68756e672f636f646569676e697465722d6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nguyenanhung/codeigniter-framework)[![PHP Version Require](https://camo.githubusercontent.com/34d967c37a868b6cd3c21a3caae457c9da3493b870290675400fa1768e1c3cd8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6e677579656e616e68756e672f636f646569676e697465722d6672616d65776f726b2f706870)](https://packagist.org/packages/nguyenanhung/codeigniter-framework)

Repackaged version of CodeIgniter's system framework, compatible with Composer and PHP 7, PHP 8

Since version `v3.2.0` - the framework is fully compatible with PHP 8.2

This package is constantly updated with new features from the original CodeIgniter3 branch. So it is always updated with bug fixes and added new features
---------------------------------------------------------------------------------------------------------------------------------------------------------

[](#this-package-is-constantly-updated-with-new-features-from-the-original-codeigniter3-branch-so-it-is-alwaysupdated-with-bug-fixes-and-added-new-features)

Main features
-------------

[](#main-features)

Added some extension libraries, related helpers

- Base Controllers with many available protected methods
- Support HMVC model
- Support RESTful Web Service
- Support Queue Worker
- Support MongoDB database
- Support Elasticsearch: Use third party packages `"elasticsearch/elasticsearch": "^8.0 || ^7.0 || ^6.0 || ^5.0"`
- Support Base Model class with some basic functions enough for SQL
- Support ORM Model class, providing a simpler and easier method to query
- Support Output Response on CLI interface via function `ResponseOutput::writeLn($message)`
- Added `StatusCodes` class to declare standard HTTP codes (from Symfony framework), For example: `StatusCodes::HTTP_OK`. For more details, please refer to class `StatusCodes`
- Add many useful helpers with the built-in package `nguyenanhung/codeigniter-basic-helper` via Composer

Instructions for installing packages into the project
-----------------------------------------------------

[](#instructions-for-installing-packages-into-the-project)

1. Install the package into the project with the following command

```
composer require nguyenanhung/codeigniter-framework
```

2. Update the `index.php` file

Find the line

```
/*
 *---------------------------------------------------------------
 * SYSTEM DIRECTORY NAME
 *---------------------------------------------------------------
 *
 * This variable must contain the name of your "system" directory.
 * Set the path if it is not in the same directory as this file.
 */
	$system_path = 'system';
```

Edit as follows

```
/*
 *---------------------------------------------------------------
 * SYSTEM DIRECTORY NAME
 *---------------------------------------------------------------
 *
 * This variable must contain the name of your "system" directory.
 * Set the path if it is not in the same directory as this file.
 */
	$system_path = '/your_vendor_path/nguyenanhung/codeigniter-framework/system';
```

3. Delete the `system` folder in the project root folder for neatness

User guide
----------

[](#user-guide)

### Instructions for writing a Controller that inherits a Base Controller

[](#instructions-for-writing-a-controller-that-inherits-a-base-controller)

In the library, there is a built-in Base Controller, inherit as follows

1. Build a new `Controller` according to the CodeIgniter 3 documentation
2. Inherit the class from `HungNG_CI_Base_Controllers` instead of `CI_Controller`, for example as follows

```
