Search by

daycry / twig-codeigniter4

daycry

CodeIgniter 4 adapter for daycry/twig

Package info

github.com/daycry/twig-codeigniter4

pkg:composer/daycry/twig-codeigniter4

Statistics

Installs: 2

Dependents: 0

Suggesters: 1

Stars: 0

Open Issues: 0

v4.0.0 2026-10-30 14:47 UTC

This package is auto-updated.

Last update: 2026-10-30 18:31:58 UTC


README

Version Documentation

Documentation: https://daycry.github.io/twig/

CodeIgniter 4 services, configuration, helpers, Spark commands, cache-service integration and optional debug toolbar for the standalone daycry/twig core. Requires PHP 8.2+, CodeIgniter 4.7+ and daycry/twig 4.0.

Install with Composer:

composer require daycry/twig-codeigniter4:^4.0
php spark twig:publish

This installs the standalone core and the framework dependency. The generated app/Config/Twig.php extends Daycry\Twig\CodeIgniter4\Config\Twig.

$twig = service('twig');
echo $twig->render('welcome', ['name' => 'Ada']);

Helpers are available after helper('twig_helper'). Register Daycry\Twig\CodeIgniter4\Debug\Toolbar\Collectors\Twig in the toolbar collectors to display diagnostics.

Both packages are developed at daycry/twig. This distribution is exported from packages/codeigniter4 with git subtree split. Submit changes to the source repository. See the installation guide, migration guide and release procedure.

See CHANGELOG.md for package release notes.