PHPackages                             benatespina/amp-twig-theme - 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. benatespina/amp-twig-theme

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

benatespina/amp-twig-theme
==========================

AMP oriented theme for Twig template engine

v0.2.0(7y ago)335.6k5[1 PRs](https://github.com/benatespina/AMPTwigTheme/pulls)MITHTMLPHP ^7.0

Since Nov 25Pushed 6y ago2 watchersCompare

[ Source](https://github.com/benatespina/AMPTwigTheme)[ Packagist](https://packagist.org/packages/benatespina/amp-twig-theme)[ RSS](/packages/benatespina-amp-twig-theme/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (9)Versions (3)Used By (0)

[![](https://camo.githubusercontent.com/5cc346570fb1368b12c74c6f0339da411afb6311eea6f6d106c00c05cab8dd28/68747470733a2f2f7261776769746875622e636f6d2f62656e6174657370696e612f616d70747769677468656d652f6d61737465722f646f63732f6c6f676f2e6a7067)](https://camo.githubusercontent.com/5cc346570fb1368b12c74c6f0339da411afb6311eea6f6d106c00c05cab8dd28/68747470733a2f2f7261776769746875622e636f6d2f62656e6174657370696e612f616d70747769677468656d652f6d61737465722f646f63732f6c6f676f2e6a7067)

AMP Twig Theme
==============

[](#amp-twig-theme)

> AMP oriented theme for Twig template engine

[![Build Status](https://camo.githubusercontent.com/7f6d653bd7cf02a8b120217fb8d61ebbeb2db0b9fc2bdf2bcf9462e08273dda0/68747470733a2f2f7472617669732d63692e6f72672f62656e6174657370696e612f414d50547769675468656d652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/benatespina/AMPTwigTheme)[![Total Downloads](https://camo.githubusercontent.com/fa41abf7c9d1c19bfb04f59ff9fde48fc5f939b095533a455d433bc7d12f9ceb/68747470733a2f2f706f7365722e707567782e6f72672f62656e6174657370696e612f616d702d747769672d7468656d652f646f776e6c6f616473)](https://packagist.org/packages/benatespina/amp-twig-theme)[![Latest Stable Version](https://camo.githubusercontent.com/e855ffe657bff1d791314af83b64077bf8be9e021e7bb21f707385236d976a03/68747470733a2f2f706f7365722e707567782e6f72672f62656e6174657370696e612f616d702d747769672d7468656d652f762f737461626c652e737667)](https://packagist.org/packages/benatespina/amp-twig-theme)[![Latest Unstable Version](https://camo.githubusercontent.com/ac28ed5bd64e65683ac199a15e01c013b2c5364c9d64cf1a24d49f7944cd4285/68747470733a2f2f706f7365722e707567782e6f72672f62656e6174657370696e612f616d702d747769672d7468656d652f762f756e737461626c652e737667)](https://packagist.org/packages/benatespina/amp-twig-theme)

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

[](#requirements)

PHP &gt;= 7.0

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

[](#installation)

The easiest way to install this bundle is using [Composer](http://getcomposer.org)

```
$ composer require benatespina/amp-twig-theme
```

Documentation
-------------

[](#documentation)

All the documentation is stored in the `docs` folder.

[Show me the docs!](docs/index.md)

Tests
-----

[](#tests)

You can easily start a simple application based on Symfony framework to test the AMP Twig theme.

```
$ cd tests/Application
$ bin/console assets:install --symlink --relative
$ bin/console --docroot=public
$ open http://127.0.0.1:8000
```

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

[](#contributing)

This library follows Twig coding standards, so pull requests need to execute the Allocine's [TwigCs](https://github.com/allocine/twigcs). In order to simplify we provide a Composer script that wraps all the commands related with this process.

```
$ composer run-script cs
```

There is also a policy for contributing to this bundle. Pull requests must be explained step by step to make the review process easy in order to accept and merge them.

Credits
-------

[](#credits)

This theme is created by:

>

**@benatespina** -

Licensing Options
-----------------

[](#licensing-options)

[![License](https://camo.githubusercontent.com/e07306a6de624061ab8fcd6a98e757cb09fca76f03f6ad840b2acd43da05bea9/68747470733a2f2f706f7365722e707567782e6f72672f62656e6174657370696e612f616d702d747769672d7468656d652f6c6963656e73652e737667)](https://github.com/benatespina/AMPTwigTheme/blob/master/LICENSE)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

2684d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/06308bfc15d8774c16d36d727f852c2d29ed8d0d6153637384439747776dc658?d=identicon)[benatespina](/maintainers/benatespina)

---

Top Contributors

[![benatespina](https://avatars.githubusercontent.com/u/3951376?v=4)](https://github.com/benatespina "benatespina (57 commits)")

---

Tags

ampampprojectthemetwigtwig-templatestwigampthemeampproject

### Embed Badge

![Health badge](/badges/benatespina-amp-twig-theme/health.svg)

```
[![Health](https://phpackages.com/badges/benatespina-amp-twig-theme/health.svg)](https://phpackages.com/packages/benatespina-amp-twig-theme)
```

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91292.0M313](/packages/twig-extra-bundle)[twig/intl-extra

A Twig extension for Intl

36663.2M218](/packages/twig-intl-extra)[rcrowe/twigbridge

Adds the power of Twig to Laravel

9105.9M50](/packages/rcrowe-twigbridge)[twig/string-extra

A Twig extension for Symfony String

21946.0M132](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

23018.5M53](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21814.8M161](/packages/symfony-ux-twig-component)

PHPackages © 2026

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