PHPackages                             manuelgil/ci4-twig - 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. manuelgil/ci4-twig

ActiveProject[Framework](/categories/framework)

manuelgil/ci4-twig
==================

🔥 Boilerplate: Twig template engine for CodeIgniter 4 framework

v1.19.0(1y ago)8105MITPHPPHP ^8.1

Since Mar 13Pushed 1y ago2 watchersCompare

[ Source](https://github.com/ManuelGil/ci4-twig)[ Packagist](https://packagist.org/packages/manuelgil/ci4-twig)[ GitHub Sponsors](https://github.com/ManuelGil)[ Fund](https://ko-fi.com/ManuelGil)[ RSS](/packages/manuelgil-ci4-twig/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (22)Used By (0)

Codeigniter 4 with Twig Template Engine
=======================================

[](#codeigniter-4-with-twig-template-engine)

[![Packagist Version](https://camo.githubusercontent.com/971dd1747b56c05f530eb4992167d6c5d2fe3f9e276892c1d8931d57eaa2c089/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616e75656c67696c2f6369342d747769673f7374796c653d666f722d7468652d6261646765266c6f676f3d7061636b6167697374)](https://packagist.org/packages/manuelgil/ci4-twig)[![Packagist Downloads](https://camo.githubusercontent.com/d56399f1210ae97df8b263cca98fff0dee351197f3d72b9165f59151d4972a08/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d616e75656c67696c2f6369342d747769673f7374796c653d666f722d7468652d6261646765266c6f676f3d7061636b6167697374)](https://packagist.org/packages/manuelgil/ci4-twig)[![Packagist Stars](https://camo.githubusercontent.com/37c80aa324742368cc62f796e0f3135c4f693a5f113c195f31dac70a697a475d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6d616e75656c67696c2f6369342d747769673f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562)](https://github.com/ManuelGil/ci4-twig)[![Packagist License](https://camo.githubusercontent.com/03108708c35fd1e56647078e9bb4802de12048b3ba756dddb2f873febaefc91a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d616e75656c67696c2f6369342d747769673f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562)](https://github.com/ManuelGil/ci4-twig/blob/main/LICENSE)

🔥 Boilerplate: Twig template engine for CodeIgniter 4 framework. This project is a simple and fast way to start a new project with CodeIgniter 4 and Twig Template Engine.

This project is based on the [Codeigniter 4 with Template Engine](https://github.com/ManuelGil/ci4-template-engine).

Requirements
------------

[](#requirements)

- [PHP 8.1](https://www.php.net/releases/8_1_0.php) or later
    - [intl](http://php.net/manual/en/intl.requirements.php)
    - [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\\CURLRequest library
    - json (enabled by default - don't turn it off)
    - [mbstring](http://php.net/manual/en/mbstring.installation.php)
    - [mysqlnd](http://php.net/manual/en/mysqlnd.install.php) if you plan to use MySQL
    - xml (enabled by default - don't turn it off)

Installation
------------

[](#installation)

### Copy this project

[](#copy-this-project)

1. Clone or Download this repository
2. Unzip the archive if needed
3. Rename the folder if needed
4. Start a Text Editor (VSCode, Sublime, PHPStorm, etc)
5. Add the project folder to the editor

### Install the project

[](#install-the-project)

You can install this project via composer with the following commands:

#### *Development*

[](#development)

- Required a composer installation.

```
composer install
```

- Downloading [composer.phar](https://getcomposer.org/download/).

```
sudo php composer.phar install
```

#### *Production*

[](#production)

- Required a composer installation.

```
composer install --no-dev --optimize-autoloader
```

- Downloading [composer.phar](https://getcomposer.org/download/).

```
sudo php composer.phar install --no-dev --optimize-autoloader
```

Configure the project
---------------------

[](#configure-the-project)

- Copy the [`env`](./env) file and call it `.env`.

```
cp env .env
```

- Edit the environment variables in the .env file as you need.
- Make www-data the owner to `writable` folder.

```
sudo chown -R www-data: writable/
```

- Start project

```
php spark serve
```

Built With
----------

[](#built-with)

- CodeIgniter 4.5.4 ([CodeIgniter](https://www.codeigniter.com/download))

Changelog
---------

[](#changelog)

See [CHANGELOG.md](./CHANGELOG.md)

Contributing
------------

[](#contributing)

Thank you for considering contributing to alternative admin. The contribution guide can be found in the [CONTRIBUTING.md](./.github/CONTRIBUTING.md).

Code of Conduct
---------------

[](#code-of-conduct)

In order to ensure that the alternate admin community is welcoming to all, please review and abide by the [CODE\_OF\_CONDUCT](./.github/CODE_OF_CONDUCT.md).

Authors
-------

[](#authors)

- **Manuel Gil** - *Owner* - [ManuelGil](https://github.com/ManuelGil)

See also the list of [contributors](https://github.com/ManuelGil/ci4-twig/contributors)who participated in this project.

License
-------

[](#license)

This project is licensed under the MIT License - see the [MIT](https://opensource.org/licenses/MIT) for details.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance42

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~34 days

Recently: every ~71 days

Total

21

Last Release

482d ago

PHP version history (2 changes)v1.1.0PHP ^7.4 || ^8.0

v1.15.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/c94ea47141066e5826ac1cfa6ca74887b101dcd1c28f8a6a6b35a57ed64584f6?d=identicon)[ManuelGil](/maintainers/ManuelGil)

---

Top Contributors

[![ManuelGil](https://avatars.githubusercontent.com/u/25472045?v=4)](https://github.com/ManuelGil "ManuelGil (22 commits)")

---

Tags

codeignitercodeigniter-boilerplatecodeigniter-templatecodeigniter-twigcodeigniter4codeigniter4-boilerplatecodeigniter4-templatecodeigniter4-twigtwig-templatephpframeworktwigcodeignitertemplatemvccitemplate enginecodeigniter4CI4CodeIgniter 4twig template engineci-4

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/manuelgil-ci4-twig/health.svg)

```
[![Health](https://phpackages.com/badges/manuelgil-ci4-twig/health.svg)](https://phpackages.com/packages/manuelgil-ci4-twig)
```

###  Alternatives

[slim/twig-view

Slim Framework 4 view helper built on top of the Twig 3 templating component

3708.0M210](/packages/slim-twig-view)[opulence/opulence

The Opulence PHP framework

72329.0k1](/packages/opulence-opulence)[abydahana/aksara

Aksara is a CodeIgniter based CRUD Toolkit you can use to build complex applications become shorter, secure and more reliable just in a few lines of code. Serving both CMS or Framework, produce both HEADLESS (RESTful API) or TRADITIONAL (Browser Based), just by writing single controller. Yet it's reusable, scalable and ready to use!

1101.2k](/packages/abydahana-aksara)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
