• This repository has been archived on 07/Feb/2023
  • Stars
    star
    103
  • Rank 333,046 (Top 7 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Pattern Lab Standard Edition for Twig

license Packagist Gitter

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.

Packaged Components

The Standard Edition for Twig comes with the following components:

Installing

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

Download a pre-built project

The fastest way to get started with the Standard Edition for Twig is to download the pre-built version from the releases page. The pre-built project comes with the Base StarterKit for Twig installed by default.

Please note: Pattern Lab uses Composer to manage project dependencies. To upgrade the Standard Edition for Twig or to install plug-ins you'll need to install Composer. We recommend that you install it globally.

Use Composer to create a project

Pattern Lab uses Composer to manage project dependencies.

1. Install Composer

Please follow the directions for installing Composer on the Composer website. We recommend you install it globally.

2. Install the Standard Edition for Twig

Use Composer's create-project command to install the Standard Edition for Twig into a location of your choosing. In Terminal type:

cd install/location/
composer create-project pattern-lab/edition-twig-standard your-project-name && cd $_

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

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

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

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

To generate the front-end for Pattern Lab type:

php core/console --generate

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

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 http://localhost:8080 in your browser.

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 <starterkit-vendor/starterkit-name>

More Repositories

1

patternlab-php

The PHP version of Pattern Lab
PHP
3,055
star
2

patternlab-node

The Node version of Pattern Lab
JavaScript
2,051
star
3

edition-node-gulp

ARCHIVED - The gulp wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets.
JavaScript
279
star
4

patternengine-php-twig

Twig-based PatternEngine for Pattern Lab.
PHP
78
star
5

website

Pattern Lab's website: patternlab.io
HTML
57
star
6

patternengine-node-react

ARCHIVED - The React engine for Patternlab/Node
JavaScript
50
star
7

patternlab-php-core

This repository provides the core functionality for Pattern Lab. It is meant to be used from within an Edition with a PatternEngine and StarterKit.
PHP
43
star
8

edition-node-grunt

The grunt wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets.
JavaScript
38
star
9

styleguidekit-assets-default

The static assets for the default StyleguideKit for Pattern Lab. Contains styles and mark-up for Pattern Lab's front-end.
JavaScript
35
star
10

starterkit-mustache-demo

The Mustache-based demo StarterKit for Pattern Lab.
31
star
11

starterkit-mustache-bootstrap

A Bootstrap starter kit for Pattern Lab
23
star
12

patternlab-node-cli

Moved to https://github.com/pattern-lab/patternlab-node/tree/dev/packages/cli
JavaScript
21
star
13

plugin-drupal-twig-components

PHP
17
star
14

the-spec

The specification for implementing Pattern Lab in various languages. This way there can be common core functionality and common shared assets.
16
star
15

starterkit-mustache-materialdesign

A Material Design starter kit for Pattern Lab
15
star
16

plugin-php-data-inheritance

The Data Inheritance Plugin allows patterns to inherit data from patterns within its lineage.
PHP
13
star
17

starterkit-mustache-foundation

A Foundation starter kit for Pattern Lab
11
star
18

starterkit-twig-demo

Pattern Lab's Demo StarterKit for Twig.
10
star
19

starterkit-handlebars-vanilla

A vanilla starterkit that includes a basic scaffolding and a few patterns to demonstrate a full page, but not a full-blown demo
9
star
20

edition-node

ARCHIVED - The pure wrapper around Pattern Lab Node Core, the default pattern engine, and supporting frontend assets.
JavaScript
9
star
21

patternengine-node-mustache

ARCHIVED - The Mustache engine for Patternlab/Node
JavaScript
7
star
22

patternengine-node-twig

ARCHIVED - The Twig engine for Patternlab/Node
JavaScript
7
star
23

plugin-php-reload

Automatic Browser Reload Support for Pattern Lab
PHP
7
star
24

plugin-php-faker

The Faker Plugin adds Faker support to Pattern Lab.
PHP
7
star
25

styleguidekit-twig-default

The default Twig-based StyleguideKit for Pattern Lab. Contains styles and mark-up for Pattern Lab's front-end.
HTML
7
star
26

starterkit-mustache-base

Pattern Lab's Base StarterKit for Mustache.
5
star
27

plugin-node-tab

ARCHIVED - The Tab plugin allows you to define additional code tabs to the pattern viewer / modal.
JavaScript
5
star
28

uikit-bare

A mostly empty starter UI to build around Pattern Lab Node output
CSS
4
star
29

patternengine-node-nunjucks

ARCHIVED
JavaScript
2
star
30

plugin-php-twig-extensions

Experimental implementation of the default Twig extensions.
PHP
2
star
31

starterkit-mustache-acidtest

Cross-platform acid tests for Pattern Lab
2
star
32

patternengine-node-underscore

ARCHIVED - The Underscore engine for Patternlab/Node
JavaScript
1
star
33

styleguidekit-mustache-default

The default Mustache StyleguideKit provides the basic front-end assets when using the Mustache PatternEngine.
HTML
1
star