{"id":13513339,"url":"https://github.com/pattern-lab/edition-php-twig-standard","last_synced_at":"2025-03-31T01:32:18.612Z","repository":{"id":28025259,"uuid":"31520456","full_name":"pattern-lab/edition-php-twig-standard","owner":"pattern-lab","description":"Pattern Lab Standard Edition for Twig","archived":true,"fork":false,"pushed_at":"2017-11-12T10:36:23.000Z","size":221,"stargazers_count":102,"open_issues_count":23,"forks_count":32,"subscribers_count":15,"default_branch":"develop","last_synced_at":"2025-03-01T03:37:04.554Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://patternlab.io/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/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":"2015-03-02T02:46:54.000Z","updated_at":"2025-02-07T07:18:59.000Z","dependencies_parsed_at":"2022-08-23T20:50:52.797Z","dependency_job_id":null,"html_url":"https://github.com/pattern-lab/edition-php-twig-standard","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattern-lab%2Fedition-php-twig-standard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattern-lab%2Fedition-php-twig-standard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattern-lab%2Fedition-php-twig-standard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pattern-lab%2Fedition-php-twig-standard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pattern-lab","download_url":"https://codeload.github.com/pattern-lab/edition-php-twig-standard/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246403961,"owners_count":20771526,"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":[],"created_at":"2024-08-01T04:00:53.095Z","updated_at":"2025-03-31T01:32:18.277Z","avatar_url":"https://github.com/pattern-lab.png","language":"PHP","readme":"![license](https://img.shields.io/github/license/pattern-lab/edition-php-twig-standard.svg)\n[![Packagist](https://img.shields.io/packagist/v/pattern-lab/edition-twig-standard.svg)](https://packagist.org/packages/pattern-lab/edition-mustache-webdesignday) [![Gitter](https://img.shields.io/gitter/room/pattern-lab/php.svg)](https://gitter.im/pattern-lab/php)\n\n# 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## Packaged Components\n\nThe Standard Edition for Twig comes with the following components:\n\n* `pattern-lab/core`: [GitHub](https://github.com/pattern-lab/patternlab-php-core), [Packagist](https://packagist.org/packages/pattern-lab/core)\n* `pattern-lab/patternengine-twig`: [documentation](https://github.com/pattern-lab/patternengine-php-twig#twig-patternengine-for-pattern-lab-php), [GitHub](https://github.com/pattern-lab/patternengine-php-twig), [Packagist](https://packagist.org/packages/pattern-lab/patternengine-twig)\n* `pattern-lab/styleguidekit-assets-default`: [GitHub](https://github.com/pattern-lab/styleguidekit-assets-default), [Packagist](https://packagist.org/packages/pattern-lab/styleguidekit-assets-default)\n* `pattern-lab/styleguidekit-twig-default`: [GitHub](https://github.com/pattern-lab/styleguidekit-twig-default), [Packagist](https://packagist.org/packages/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/pattern-lab/edition-php-twig-standard/releases) from the [releases page](https://github.com/pattern-lab/edition-php-twig-standard/releases). The pre-built project comes with the [Base StarterKit for Twig](https://github.com/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 pattern-lab/edition-twig-standard your-project-name \u0026\u0026 cd $_\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","funding_links":[],"categories":["External tools"],"sub_categories":["Pattern Lab"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpattern-lab%2Fedition-php-twig-standard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpattern-lab%2Fedition-php-twig-standard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpattern-lab%2Fedition-php-twig-standard/lists"}