{"id":13852380,"url":"https://github.com/drupal-pattern-lab/edition-php-twig-standard","last_synced_at":"2025-07-13T05:32:52.485Z","repository":{"id":56972636,"uuid":"89731039","full_name":"drupal-pattern-lab/edition-php-twig-standard","owner":"drupal-pattern-lab","description":"Fork of Pattern Lab Standard Edition for Twig","archived":false,"fork":true,"pushed_at":"2017-08-24T18:47:12.000Z","size":228,"stargazers_count":4,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-12T17:21:47.535Z","etag":null,"topics":["pattern-lab"],"latest_commit_sha":null,"homepage":"http://patternlab.io/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"pattern-lab/edition-php-twig-standard","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drupal-pattern-lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-28T17:51:53.000Z","updated_at":"2018-10-09T22:24:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/drupal-pattern-lab/edition-php-twig-standard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/drupal-pattern-lab/edition-php-twig-standard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drupal-pattern-lab%2Fedition-php-twig-standard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drupal-pattern-lab%2Fedition-php-twig-standard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drupal-pattern-lab%2Fedition-php-twig-standard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drupal-pattern-lab%2Fedition-php-twig-standard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drupal-pattern-lab","download_url":"https://codeload.github.com/drupal-pattern-lab/edition-php-twig-standard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drupal-pattern-lab%2Fedition-php-twig-standard/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259668876,"owners_count":22893144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pattern-lab"],"created_at":"2024-08-04T22:01:17.847Z","updated_at":"2025-07-13T05:32:52.209Z","avatar_url":"https://github.com/drupal-pattern-lab.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# Pattern Lab Standard Edition for Twig\n\nThe Standard Edition for Twig gives developers and designers a clean and stable base from which to develop a Twig-based pattern library.\n\n\u003e **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.\n\n## Packaged Components\n\nThe Standard Edition for Twig comes with the following components:\n\n* `pattern-lab/core`: [GitHub](https://github.com/drupal-pattern-lab/patternlab-php-core)\n* `pattern-lab/patternengine-twig`: [GitHub](https://github.com/drupal-pattern-lab/patternengine-php-twig)\n* `pattern-lab/styleguidekit-assets-default`: [GitHub](https://github.com/drupal-pattern-lab/styleguidekit-assets-default)\n* `pattern-lab/styleguidekit-twig-default`: [GitHub](https://github.com/drupal-pattern-lab/styleguidekit-twig-default)\n\n## Installing\n\nThere are two methods for downloading and installing the Standard Edition for Twig:\n\n* [Download a pre-built project](#download-a-pre-built-package)\n* [Use Composer to create a project](#use-composer-to-create-a-project)\n\n### Download a pre-built project\n\nThe 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.\n\n**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).\n\n### Use Composer to create a project\n\nPattern Lab uses [Composer](https://getcomposer.org/) to manage project dependencies.\n\n#### 1. Install Composer\n\nPlease 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).\n\n#### 2. Install the Standard Edition for Twig\n\nUse 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:\n\n    cd install/location/\n    composer create-project drupal-pattern-lab/edition-twig-standard your-project-name\n\nThis 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.\n\n## Updating Pattern Lab\n\nTo update Pattern Lab please refer to each component's GitHub repository. The components are listed at the top of the README.\n\n## Helpful Commands\n\nThese are some helpful commands you can use on the command line for working with Pattern Lab.\n\n### List all of the available commands\n\nTo list all available commands type:\n\n    php core/console --help\n\nTo list the options for a particular command type:\n\n    php core/console --help --[command]\n\n### Generate Pattern Lab\n\nTo generate the front-end for Pattern Lab type:\n\n    php core/console --generate\n\n### Watch for changes and re-generate Pattern Lab\n\nTo watch for changes and re-generate the front-end for Pattern Lab type:\n\n    php core/console --watch\n\n### Start a server to view Pattern Lab\n\nYou can use PHP's built-in web server to review your Pattern Lab project in a browser. In a seperate window type:\n\n    php core/console --server\n\nThen open [http://localhost:8080](http://localhost:8080) in your browser.\n\n### Install a StarterKit\n\nTo install a near-empty StarterKit as a starting point for your project type:\n\n    php core/console --starterkit --init\n\nTo install a specific StarterKit from GitHub type:\n\n    php core/console --starterkit --install \u003cstarterkit-vendor/starterkit-name\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrupal-pattern-lab%2Fedition-php-twig-standard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrupal-pattern-lab%2Fedition-php-twig-standard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrupal-pattern-lab%2Fedition-php-twig-standard/lists"}