PHPackages                             drupal-pattern-lab/edition-twig-standard - 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. drupal-pattern-lab/edition-twig-standard

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

drupal-pattern-lab/edition-twig-standard
========================================

Standard Edition of Pattern Lab for Twig. Installs all Twig-related assets except for a StarterKit.

v2.2.2(8y ago)419.5k6[2 issues](https://github.com/drupal-pattern-lab/edition-php-twig-standard/issues)MITPHPPHP &gt;=5.4

Since Mar 7Pushed 8y ago2 watchersCompare

[ Source](https://github.com/drupal-pattern-lab/edition-php-twig-standard)[ Packagist](https://packagist.org/packages/drupal-pattern-lab/edition-twig-standard)[ Docs](http://drupal-pattern-lab.github.io)[ RSS](/packages/drupal-pattern-lab-edition-twig-standard/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (14)Used By (0)

Pattern Lab Standard Edition for Twig
=====================================

[](#pattern-lab-standard-edition-for-twig)

The Standard Edition for Twig gives developers and designers a clean and stable base from which to develop a Twig-based pattern library.

> **ATTENTION**: This is [a fork of the original](https://github.com/pattern-lab/edition-php-twig-standard) by the [Drupal Pattern Lab GitHub Org](https://github.com/drupal-pattern-lab), as are all dependencies. See [our reasons for forking](https://drupal-pattern-lab.github.io/faqs/#why-fork-pattern-lab) - it's out of love for Pattern Lab.

Packaged Components
-------------------

[](#packaged-components)

The Standard Edition for Twig comes with the following components:

- `pattern-lab/core`: [GitHub](https://github.com/drupal-pattern-lab/patternlab-php-core)
- `pattern-lab/patternengine-twig`: [GitHub](https://github.com/drupal-pattern-lab/patternengine-php-twig)
- `pattern-lab/styleguidekit-assets-default`: [GitHub](https://github.com/drupal-pattern-lab/styleguidekit-assets-default)
- `pattern-lab/styleguidekit-twig-default`: [GitHub](https://github.com/drupal-pattern-lab/styleguidekit-twig-default)

Installing
----------

[](#installing)

There are two methods for downloading and installing the Standard Edition for Twig:

- [Download a pre-built project](#download-a-pre-built-package)
- [Use Composer to create a project](#use-composer-to-create-a-project)

### Download a pre-built project

[](#download-a-pre-built-project)

The fastest way to get started with the Standard Edition for Twig is to [download the pre-built version](https://github.com/drupal-pattern-lab/edition-php-twig-standard/releases) from the [releases page](https://github.com/drupal-pattern-lab/edition-php-twig-standard/releases). The pre-built project comes with the [Base StarterKit for Twig](https://github.com/drupal-pattern-lab/starterkit-twig-base) installed by default.

**Please note:** Pattern Lab uses [Composer](https://getcomposer.org/) to manage project dependencies. To upgrade the Standard Edition for Twig or to install plug-ins you'll need to [install Composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx). We recommend that you [install it globally](https://getcomposer.org/doc/00-intro.md#globally).

### Use Composer to create a project

[](#use-composer-to-create-a-project)

Pattern Lab uses [Composer](https://getcomposer.org/) to manage project dependencies.

#### 1. Install Composer

[](#1-install-composer)

Please follow the directions for [installing Composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx) on the Composer website. We recommend you [install it globally](https://getcomposer.org/doc/00-intro.md#globally).

#### 2. Install the Standard Edition for Twig

[](#2-install-the-standard-edition-for-twig)

Use Composer's [`create-project` command](https://getcomposer.org/doc/03-cli.md#create-project) to install the Standard Edition for Twig into a location of your choosing. In Terminal type:

```
cd install/location/
composer create-project drupal-pattern-lab/edition-twig-standard your-project-name

```

This will install the Standard Edition for Twig into a directory called `your-project-name` in `install/location/`. During the set-up process you will be asked to install an appropriate StarterKit. You will be automatically dropped into the project directory after the process is finished.

Updating Pattern Lab
--------------------

[](#updating-pattern-lab)

To update Pattern Lab please refer to each component's GitHub repository. The components are listed at the top of the README.

Helpful Commands
----------------

[](#helpful-commands)

These are some helpful commands you can use on the command line for working with Pattern Lab.

### List all of the available commands

[](#list-all-of-the-available-commands)

To list all available commands type:

```
php core/console --help

```

To list the options for a particular command type:

```
php core/console --help --[command]

```

### Generate Pattern Lab

[](#generate-pattern-lab)

To generate the front-end for Pattern Lab type:

```
php core/console --generate

```

### Watch for changes and re-generate Pattern Lab

[](#watch-for-changes-and-re-generate-pattern-lab)

To watch for changes and re-generate the front-end for Pattern Lab type:

```
php core/console --watch

```

### Start a server to view Pattern Lab

[](#start-a-server-to-view-pattern-lab)

You can use PHP's built-in web server to review your Pattern Lab project in a browser. In a seperate window type:

```
php core/console --server

```

Then open  in your browser.

### Install a StarterKit

[](#install-a-starterkit)

To install a near-empty StarterKit as a starting point for your project type:

```
php core/console --starterkit --init

```

To install a specific StarterKit from GitHub type:

```
php core/console --starterkit --install

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 65.5% 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 ~115 days

Recently: every ~93 days

Total

8

Last Release

3276d ago

Major Versions

v0.6.6 → v2.0.02016-05-19

PHP version history (2 changes)v0.6.6PHP &gt;=5.3.6

v2.2.0PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/987cdfed8075c463b2a985c2b4e05b7041b4e97f243f77cc29e4c85a8791a515?d=identicon)[EvanLovely](/maintainers/EvanLovely)

---

Top Contributors

[![dmolsen](https://avatars.githubusercontent.com/u/2746?v=4)](https://github.com/dmolsen "dmolsen (36 commits)")[![EvanLovely](https://avatars.githubusercontent.com/u/569699?v=4)](https://github.com/EvanLovely "EvanLovely (16 commits)")[![bolt-bot](https://avatars.githubusercontent.com/u/36777128?v=4)](https://github.com/bolt-bot "bolt-bot (2 commits)")[![sghoweri](https://avatars.githubusercontent.com/u/1617209?v=4)](https://github.com/sghoweri "sghoweri (1 commits)")

---

Tags

pattern-labpattern lab

### Embed Badge

![Health badge](/badges/drupal-pattern-lab-edition-twig-standard/health.svg)

```
[![Health](https://phpackages.com/badges/drupal-pattern-lab-edition-twig-standard/health.svg)](https://phpackages.com/packages/drupal-pattern-lab-edition-twig-standard)
```

###  Alternatives

[pattern-lab/patternengine-twig

Twig-based PatternEngine for Pattern Lab.

771.3M11](/packages/pattern-lab-patternengine-twig)[pattern-lab/styleguidekit-assets-default

The assets for the default StyleguideKit for Pattern Lab. Contains styles and mark-up for Pattern Lab's front-end.

351.4M6](/packages/pattern-lab-styleguidekit-assets-default)[pattern-lab/edition-drupal-standard

Standard Edition of Pattern Lab for Drupal.

12419.1k](/packages/pattern-lab-edition-drupal-standard)[pattern-lab/drupal-twig-components

A collection of Twig components to be used with Drupal- and Twig-related StarterKits.

17849.9k2](/packages/pattern-lab-drupal-twig-components)[aleksip/plugin-data-transform

Data Transform Plugin for Pattern Lab PHP

34897.4k3](/packages/aleksip-plugin-data-transform)

PHPackages © 2026

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