PHPackages                             lin3s/pattern-library-builder - 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. lin3s/pattern-library-builder

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

lin3s/pattern-library-builder
=============================

Library that provides an elegant and easy way to develop a pattern library for your front-end components

v0.2.1(7y ago)03.1k1[7 issues](https://github.com/LIN3S/PatternLibraryBuilder/issues)[1 PRs](https://github.com/LIN3S/PatternLibraryBuilder/pulls)MITPHPPHP ^7.1

Since Jun 23Pushed 7y ago3 watchersCompare

[ Source](https://github.com/LIN3S/PatternLibraryBuilder)[ Packagist](https://packagist.org/packages/lin3s/pattern-library-builder)[ RSS](/packages/lin3s-pattern-library-builder/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (11)Versions (7)Used By (0)

PatternLibraryBuilder
=====================

[](#patternlibrarybuilder)

> Library that provides an elegant and easy way to develop a pattern library for your front-end components

Features
--------

[](#features)

- YAML config driven pattern library builder
- Opinated and extensible default template
- Use already existing renderers to list colors, typography, iconography
- Render twig templates in responsive viewports and with autogenerated twig "include" method and HTML output
- Easily create your renderer to adapt it to your needs
- Standalone PHP library with built-in Symfony integration

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

[](#installation)

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

```
$ composer require lin3s/pattern-library-builder
```

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

[](#documentation)

- First use
    - [Installing and configuring](docs/first_use_installing_and_configuring.md)
    - [Your first page](docs/first_use_your_first_page.md)
- Renderers
    - [Using renderers](docs/renderers_usage.md)
    - [Creating custom renderers](docs/renderers_create_custom.md)
- Theme
    - [Customizing default theme](docs/theme_customize_default.md)
- Symfony integration
    - [Configuration reference](docs/symfony_configuration_reference.md)

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

Tests
-----

[](#tests)

This library is tested by **[PHPSpec](http://www.phpspec.net/en/stable/), SpecBDD framework for PHP**.

Run the following command to launch tests:

```
$ vendor/bin/phpspec run -fpretty
```

Also, you can easily start a simple application to test the features that the bundle provides.

```
$ cd tests/Application && bin/console server:start --docroot=web
$ open http://127.0.0.1:8000/design-system
```

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

[](#contributing)

This library follows PHP coding standards, so pull requests need to execute the Fabien Potencier's [PHP-CS-Fixer](http://cs.sensiolabs.org/). Furthermore, if the PR creates some not-PHP file remember that you have to put the license header manually. 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. New methods or code improvements must come paired with [PHPSpec](http://www.phpspec.net/en/stable/) tests.

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

[](#licensing-options)

[![License](https://camo.githubusercontent.com/8ebb3b6b2fef86ae829a99c3c025819bb4f70f23d55305f739696964da18af3a/68747470733a2f2f706f7365722e707567782e6f72672f6c696e33732f7061747465726e2d6c6962726172792d6275696c6465722f6c6963656e73652e737667)](https://github.com/LIN3S/PatternLibraryBuilder/blob/master/LICENSE)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

3

Last Release

2864d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b54f0877b7c31df24820fc1c55bd1a4dcda487dbe8ae5b031e6bf8362fecdfe4?d=identicon)[gorkalaucirica](/maintainers/gorkalaucirica)

![](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 (42 commits)")[![gorkalaucirica](https://avatars.githubusercontent.com/u/1749891?v=4)](https://github.com/gorkalaucirica "gorkalaucirica (35 commits)")[![mktoast](https://avatars.githubusercontent.com/u/4963232?v=4)](https://github.com/mktoast "mktoast (13 commits)")

---

Tags

design-systemhtmlpattern-librarytwigsymfonytwigcssdesign-systempattern library

### Embed Badge

![Health badge](/badges/lin3s-pattern-library-builder/health.svg)

```
[![Health](https://phpackages.com/badges/lin3s-pattern-library-builder/health.svg)](https://phpackages.com/packages/lin3s-pattern-library-builder)
```

###  Alternatives

[tales-from-a-dev/twig-tailwind-extra

A Twig extension for Tailwind

34802.1k9](/packages/tales-from-a-dev-twig-tailwind-extra)[yellowskies/qr-code-bundle

Symfony Barcode &amp; QR Code Generator Bundle with Twig extension

36682.9k](/packages/yellowskies-qr-code-bundle)[boekkooi/jquery-validation-bundle

Jquery form validation bundle for symfony 2

2773.9k1](/packages/boekkooi-jquery-validation-bundle)[symfony/ux-toolkit

A tool to easily create a design system in your Symfony app with customizable, well-crafted Twig components

1432.0k](/packages/symfony-ux-toolkit)

PHPackages © 2026

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