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

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

lastcall/mannequin-twig
=======================

Twig extension for the Mannequin template viewer

1.0.7(8y ago)010.2k11MITPHPPHP &gt;7.0

Since Jul 15Pushed 1y agoCompare

[ Source](https://github.com/LastCallMedia/Mannequin-Twig)[ Packagist](https://packagist.org/packages/lastcall/mannequin-twig)[ RSS](/packages/lastcall-mannequin-twig/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (5)Versions (32)Used By (1)

Mannequin Twig is brought to you by your friends at [Last Call Media](https://www.lastcallmedia.com), it is a command line application that you can use to visualize and work on your Twig Templates in the browser. For example, you might use it to work on the templates inside of a Symfony or Silex application.

Quick Start
-----------

[](#quick-start)

Using [Composer](https://getcomposer.org/doc/00-intro.md), install Mannequin Twig from your project root. From the command line:

```
$ composer require lastcall/mannequin-twig
```

Next, create a new `.mannequin.php` file in your project root. This file is where you will configure Mannequin. Inside of that file:

[@see config](demo/.mannequin.php#L23-50)

See all of the [configuration options](docs/configuration.md), or [view an example project](demo/)

Setting up Components
---------------------

[](#setting-up-components)

While the `.mannequin.php` file tells Mannequin where to find your components, you still need to describe them to Mannequin. To do that, we use a special YAML formatted comment block at the top of your twig files. For example, to describe a "Card" component living inside of `card.html.twig`, you would add the following at the top of the file:

```
{# @Component
name: Card
group: Molecule
samples:
    Small:
        title: I am a small card
        body: Lorem ipsum...
        classes: ['small']
#}

  ...

```

See the full YAML reference [here](docs/components.md)

Workflow
--------

[](#workflow)

When you're ready to begin work on your templates, you can use the following worklow:

1. Fire up a live development server so you can see your component. From the command line: ```
    $ vendor/bin/mannequin start
    ```
2. This will output a URL for the Mannequin UI. Visit it in your browser.
3. In the UI, find the component you want to work on.
4. Open the file, and make your changes.
5. Reload the UI to see how your changes look.

###  Health Score

35

↑

LowBetter than 79% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 97.9% 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 ~4 days

Total

31

Last Release

3105d ago

Major Versions

0.3.0 → 1.0.0-beta12017-09-20

0.3.1 → 1.0.0-rc22017-09-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/08764a9d2125547417a4f3efeee159b4fc1ff4a5094326228e413ef38566da23?d=identicon)[lschumann](/maintainers/lschumann)

![](https://www.gravatar.com/avatar/7a4a154961f7167b96103447056ce7319becb50c4eb836e0cecfd26b08cfd0ba?d=identicon)[chrislcm](/maintainers/chrislcm)

---

Top Contributors

[![rbayliss](https://avatars.githubusercontent.com/u/654407?v=4)](https://github.com/rbayliss "rbayliss (94 commits)")[![sagar-lcm](https://avatars.githubusercontent.com/u/106957476?v=4)](https://github.com/sagar-lcm "sagar-lcm (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lastcall-mannequin-twig/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[vincentlanglet/twig-cs-fixer

A tool to automatically fix Twig code style

3348.4M67](/packages/vincentlanglet-twig-cs-fixer)[symfony/ux-twig-component

Twig components for Symfony

21814.8M162](/packages/symfony-ux-twig-component)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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