[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8573":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":16,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":20,"defaultBranch":21,"hasWiki":19,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":16,"starSnapshotCount":16,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},8573,"patternlab-php","pattern-lab\u002Fpatternlab-php","pattern-lab","The PHP version of Pattern Lab","http:\u002F\u002Fpatternlab.io",null,"PHP",3023,438,4,27,0,59.93,"MIT License",true,false,"master",[],"2026-06-12 04:00:40","![license](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002Fpattern-lab\u002Fpatternlab-php.svg)\n[![Packagist](https:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fv\u002Fpattern-lab\u002Fedition-mustache-standard.svg)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fpattern-lab\u002Fedition-mustache-standard) [![Gitter](https:\u002F\u002Fimg.shields.io\u002Fgitter\u002Froom\u002Fpattern-lab\u002Fphp.svg)](https:\u002F\u002Fgitter.im\u002Fpattern-lab\u002Fphp)\n\n# Pattern Lab Standard Edition for Mustache\n\nThe Pattern Lab Standard Edition for Mustache is the evolution of Pattern Lab 1. Pattern Lab is still, at its core, a prototyping tool focused on encouraging communication between content creators, designers, devs, and clients. It combines platform-agnostic assets, like the [Mustache](http:\u002F\u002Fmustache.github.io\u002F)-based patterns, with a PHP-based \"builder.\" Pattern Lab 2 introduces [the beginnings of an ecosystem](http:\u002F\u002Fpatternlab.io\u002Fdocs\u002Fadvanced-ecosystem-overview.html) that will allow teams to mix, match and extend Pattern Lab to meet their specific needs. It will also make it easier for the Pattern Lab team to push out new features. Pattern Lab Standard Edition for Mustache is just [one of the four PHP-based Editions currently available](http:\u002F\u002Fpatternlab.io\u002Fdocs\u002Finstallation.html).\n\n## Demo\n\nYou can play with a demo of the front-end of Pattern Lab at [demo.patternlab.io](http:\u002F\u002Fdemo.patternlab.io).\n\n## Requirements\n\nTo use the basic features of Pattern Lab to compile patterns, you must have **PHP 5.4+** installed. On Mac OS X Pattern Lab should work \"out of the box.\" If you're on Windows you can [download PHP from PHP.net](http:\u002F\u002Fwindows.php.net\u002Fdownload\u002F). Pattern Lab comes with its own built-in web server.\n\nPattern Lab uses [Composer](https:\u002F\u002Fgetcomposer.org\u002F) to manage project dependencies. It's required if you want to install Pattern Lab using Composer's `create-project` command or if you want to upgrade Pattern Lab in the future.\n\n## Installing\n\nThere are two methods for downloading and installing the Standard Edition for Mustache:\n\n* Download a pre-built project\n* Create a project based on this Edition with Composer\n\n### Download a pre-built project\n\nThe fastest way to get started with Pattern Lab's Standard Edition for Mustache is to download the latest pre-built version from the [releases page](https:\u002F\u002Fgithub.com\u002Fpattern-lab\u002Fpatternlab-php\u002Freleases\u002Flatest).\n\n### Use Composer to create a project\n\nPattern Lab uses [Composer](https:\u002F\u002Fgetcomposer.org\u002F) to manage project dependencies.\n\n#### 1. Install Composer\n\nPlease follow the directions for [installing Composer](https:\u002F\u002Fgetcomposer.org\u002Fdoc\u002F00-intro.md#installation-linux-unix-osx) on the Composer website. We recommend you [install it globally](https:\u002F\u002Fgetcomposer.org\u002Fdoc\u002F00-intro.md#globally).\n\n#### 2. Install the Standard Edition for Mustache\n\nUse Composer's [`create-project` command](https:\u002F\u002Fgetcomposer.org\u002Fdoc\u002F03-cli.md#create-project) to install the Standard Edition for Mustache into a location of your choosing. To create a project do the following:\n\n1. In a terminal window navigate to where you want to install Pattern Lab\n2. Type `composer create-project pattern-lab\u002Fedition-mustache-standard patternlab2-example && cd $_`\n3. When prompted, type `1` to install the demo StarterKit\n\nThis will install the Standard Edition for Mustache along with the demo StarterKit into a directory called `patternlab2-example`. You will be automatically dropped into `patternlab2-example\u002F` when the install is finished.\n\n**Note:** If you clone or download this repository and use `composer install` to install the project dependencies you'll need to type the following to install the demo StarterKit:\n\n    composer install-demo\n\nOtherwise you'll have a very bare set-up of Pattern Lab.\n\n## Get Up and Running\n\nAfter installing do the following to start and view Pattern Lab:\n\n1. In a terminal window navigate to the root of your project if you aren't there already\n2. Type `php core\u002Fconsole --server --with-watch`\n\nYou should now be able to open [http:\u002F\u002Flocalhost:8080](http:\u002F\u002Flocalhost:8080) to see your generated site. Any changes you make in `.\u002Fsource\u002F` will automatically rebuild your site and reload your browser.\n\nAs you get more comfortable with Pattern Lab you can [integrate it with a Gulp or Grunt workflow](http:\u002F\u002Fpatternlab.io\u002Fdocs\u002Fadvanced-integration-with-grunt.html) and drop some of the native Pattern Lab features like automatic browser reload. You can also check out [the list of plugins](http:\u002F\u002Fpatternlab.io\u002Fdownload.html).\n\n## More Documentation\n\nObviously Pattern Lab is deeper than the install process. [Check out the documentation](https:\u002F\u002Fpatternlab.io\u002Fdocs\u002F) to learn about how to use patterns, how to modify the data used to populate those patterns, and about some advanced features.\n\n## Migrating from Pattern Lab 1 to Pattern Lab 2\n\nPattern Lab 2 was a complete rewrite and reorganization of Pattern Lab 1. [Learn about the changes](http:\u002F\u002Fpatternlab.io\u002Fdocs\u002Fchanges-1-to-2.html). After installing the Standard Edition for Mustache do the following to migrate from Pattern Lab 1 to Pattern Lab 2:\n\n1. Copy `.\u002Fsource` from your old project to your new install\n2. Copy `.\u002Fsource\u002F_patterns\u002F00-atoms\u002F00-meta\u002F_00-head.mustache` to `.\u002Fsource\u002F_meta\u002F_00-head.mustache`\n3. Copy `.\u002Fsource\u002F_patterns\u002F00-atoms\u002F00-meta\u002F_01-foot.mustache` to `.\u002Fsource\u002F_meta\u002F_00-foot.mustache`\n4. Copy `.\u002Fsource\u002F_data\u002Fannotations.js` to `.\u002Fsource\u002F_annotations\u002Fannotations.js`\n\nEverything else should work without changes.\n\n## Need Pattern Lab 1?\n\nThe [source code for Pattern Lab 1](https:\u002F\u002Fgithub.com\u002Fpattern-lab\u002Fpatternlab-php\u002Freleases\u002Ftag\u002Fv1.1.0) is still available for download.\n\n## Packaged Components\n\nThe Standard Edition for Mustache installs the following components:\n\n* `pattern-lab\u002Fcore`: [GitHub](https:\u002F\u002Fgithub.com\u002Fpattern-lab\u002Fpatternlab-php-core), [Packagist](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fpattern-lab\u002Fcore)\n* `pattern-lab\u002Fpatternengine-mustache`: [documentation](https:\u002F\u002Fgithub.com\u002Fpattern-lab\u002Fpatternengine-php-mustache#mustache-patternengine-for-pattern-lab-php), [GitHub](https:\u002F\u002Fgithub.com\u002Fpattern-lab\u002Fpatternengine-php-mustache), [Packagist](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fpattern-lab\u002Fpatternengine-mustache)\n* `pattern-lab\u002Fplugin-reload`: [GitHub](https:\u002F\u002Fgithub.com\u002Fpattern-lab\u002Fplugin-php-reload), [Packagist](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fpattern-lab\u002Fplugin-reload)\n* `pattern-lab\u002Fstyleguidekit-assets-default`: [GitHub](https:\u002F\u002Fgithub.com\u002Fpattern-lab\u002Fstyleguidekit-assets-default), [Packagist](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fpattern-lab\u002Fstyleguidekit-assets-default)\n* `pattern-lab\u002Fstyleguidekit-mustache-default`: [GitHub](https:\u002F\u002Fgithub.com\u002Fpattern-lab\u002Fstyleguidekit-mustache-default), [Packagist](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fpattern-lab\u002Fstyleguidekit-mustache-default)\n\n## List All of the Available Commands and Their Options\n\nTo list all available commands type:\n\n    php core\u002Fconsole --help\n\nTo list the options for a particular command type:\n\n    php core\u002Fconsole --help --[command]\n","Pattern Lab PHP 是一个用于创建和管理设计模式的工具，特别适合使用 Mustache 模板语言的项目。它通过提供平台无关的资产与PHP构建器结合，支持内容创作者、设计师、开发者及客户之间的高效沟通。该项目的核心功能包括基于Mustache的模板系统、易于扩展的生态系统以及内置的Web服务器，允许团队根据自身需求定制解决方案。适用于需要快速原型开发、设计系统管理和前端组件库建设的场景。此外，Pattern Lab PHP 支持通过Composer进行依赖管理和安装，确保了项目的灵活性与可维护性。",2,"2026-06-11 03:18:40","top_language"]