PHPackages                             mainio/c5-twig-templates - 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. [Templating &amp; Views](/categories/templating)
4. /
5. mainio/c5-twig-templates

AbandonedArchivedLibrary[Templating &amp; Views](/categories/templating)

mainio/c5-twig-templates
========================

Makes it possible to use twig templates in concrete5.

v0.1.9(9y ago)266111MITPHPPHP &gt;=5.3.3

Since Jul 30Pushed 9y ago3 watchersCompare

[ Source](https://github.com/mainio/c5pkg_twig_templates)[ Packagist](https://packagist.org/packages/mainio/c5-twig-templates)[ Docs](https://github.com/mainio/c5pkg_twig_templates)[ RSS](/packages/mainio-c5-twig-templates/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (13)Used By (1)

Twig templates for concrete5
============================

[](#twig-templates-for-concrete5)

This is a composer package that provides twig templates possibility for concrete5. Currently it only works with single pages, in the future it should also work in other areas of concrete5.

How to use?
-----------

[](#how-to-use)

Add a composer.json file into your concrete5 package's directory. Into that file, add the following content:

```
{
    "require": {
        "mainio/c5-twig-templates": "*"
    }
}

```

And then run `composer install` in the same directory. After this, add the following on top of your package controller (after the namespace definition):

```
include(dirname(__FILE__) . '/vendor/autoload.php');
```

When developing your twig views, it is also suggested to add the following configuration to your `application/config/app.php`:

```
return array(
    // ... some other configs ...
    'twig_debug' => true
    // ... some other configs ...
);
```

This prevents the templates from being loaded from the compile cache which makes developing a lot more fun as you do not need to flush your cache after every page load.

If you are looking for code examples, e.g. the following package utilizes this package:

[https://github.com/mainio/c5\_symfony\_forms\_example](https://github.com/mainio/c5_symfony_forms_example)

Roadmap
-------

[](#roadmap)

- Make the templates work in themes
- Make the templates work in block views

License
-------

[](#license)

Licensed under the MIT license. See LICENSE for more information.

Copyright (c) 2015 Mainio Tech Ltd.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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 ~37 days

Recently: every ~0 days

Total

10

Last Release

3603d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/39bf47dabfa0ac8934f8fa2d0faaa26e61c6e179216b862c39270eb182a624d7?d=identicon)[ahukkanen](/maintainers/ahukkanen)

---

Top Contributors

[![ahukkanen](https://avatars.githubusercontent.com/u/864340?v=4)](https://github.com/ahukkanen "ahukkanen (36 commits)")

---

Tags

twigconcrete5templates

### Embed Badge

![Health badge](/badges/mainio-c5-twig-templates/health.svg)

```
[![Health](https://phpackages.com/badges/mainio-c5-twig-templates/health.svg)](https://phpackages.com/packages/mainio-c5-twig-templates)
```

###  Alternatives

[shoot/shoot

Shoot aims to make providing data to your templates more manageable

41229.9k2](/packages/shoot-shoot)[daycry/twig

twig for Codeigniter 4

145.1k2](/packages/daycry-twig)[prosopo/views

Blazing fast Views with model-driven approach, Blade and multi-namespace support.

101.2k](/packages/prosopo-views)

PHPackages © 2026

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