PHPackages                             macwinnie/twig-form - 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. macwinnie/twig-form

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

macwinnie/twig-form
===================

Create Form from TwigTemplate and JSON configuration if necessary

0.0.1(3y ago)011CC-BY-SA-4.0PHPPHP ^8.1 || ^8.2

Since Apr 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/macwinnie/twig-form)[ Packagist](https://packagist.org/packages/macwinnie/twig-form)[ RSS](/packages/macwinnie-twig-form/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (6)Versions (3)Used By (0)

TwigForm
========

[](#twigform)

Usage
-----

[](#usage)

This repo is meant to be included within other projects, so simply run this command to require it:

```
composer require macwinnie/twigform
```

Since the tool is also tested, please ensure to run `composer install --no-dev` in production stages, so no unnecessary tools are installed and autoloaded within your production environment!

Testing
-------

[](#testing)

All functionalities are developed along the BDD (behaviour driven development) principles. Therefor, [Behat](https://docs.behat.org) is used to write Gherkin test scenarios and test them – all that takes part within the `/tests` folder.

To run the tests, you'll need the full composer installation with all dependencies, the production and development ones. For example use `devopsansiblede/apache:latest` to run everything that follows:

```
docker pull devopsansiblede/apache
docker run -p80:80 -d --name twigform -v $(pwd):/var/www/html devopsansiblede/apache
docker exec -it -u www-data twigform composer install
docker exec -it -u www-data twigform vendor/bin/behat
```

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

[](#documentation)

[Documentation current master state](https://macwinnie.github.io/twig-form/namespaces/macwinnie-twigform.html)

The functions within this repository are documented with DocBlock style. To visualize the documentation, the project is using [phpDocumentor](https://phpdoc.org/) to generate a viewable website with the documentation within the directory `/docs`.

To create the latest documentation, simply run the following Docker command:

```
docker pull phpdoc/phpdoc:3
rm -rf docs
docker run --rm -v $(pwd):/data phpdoc/phpdoc:3 --setting=graphs.enabled=true -d src -t docs --sourcecode --title=TwigForm
cat  docs/css/base.css

code,
code.prettyprint {
    background: var(--primary-color-lighten);
    border: 1px solid var(--code-border-color);
    border-radius: var(--border-radius-base-size);
    padding: 0.1em 0.4em;
    margin: 0.1em 0.2em;
    font-size: 0.9em !important;
}
pre.prettyprint {
    font-size: 0.8em !important;
}
EOF
```

*ATTENTION:* The phpDocumentor tag `latest` from Docker is somehow a very old one – one wants to use a version tag like the `:3` above.

Licence
-------

[](#licence)

[CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/deed.en)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

2

Last Release

1122d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/06148942cbb815f08bd44856cdc26cc63446ef01adf1f207100ae76965c017d6?d=identicon)[macwinnie](/maintainers/macwinnie)

---

Top Contributors

[![macwinnie](https://avatars.githubusercontent.com/u/1001936?v=4)](https://github.com/macwinnie "macwinnie (34 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/macwinnie-twig-form/health.svg)

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

###  Alternatives

[twig/intl-extra

A Twig extension for Intl

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

Adds the power of Twig to Laravel

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

A Twig extension to allow inlining CSS

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

Twig components for Symfony

21814.8M162](/packages/symfony-ux-twig-component)[twig/markdown-extra

A Twig extension for Markdown

12114.3M83](/packages/twig-markdown-extra)[symfony/ux-live-component

Live components for Symfony

1635.6M72](/packages/symfony-ux-live-component)

PHPackages © 2026

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