Download the PHP package daspete/labcoat without Composer

On this page you can find all versions of the php package daspete/labcoat. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package labcoat

Labcoat: Pattern Lab for Production

Labcoat is a library for using Pattern Lab content in live site environments. It provides the ability to:

Labcoat places the following restrictions on Pattern Lab installations:

Labcoat was created by Pixo, and released under the NCSA license.

Pattern Lab was created by Brad Frost and Dave Olsen, and released under the MIT license.

Basic usage

Include the Labcoat library using Composer:

The PatternLab class represents a Pattern Lab installation. For Standard Edition installations, Labcoat needs the path to the installation root (containing config and source directories):

For an installation that uses Labcoat's default structure:

For custom configurations, create a new Configuration object and use it as a constructor argument:

Rendering pattern templates

Labcoat contains a Twig loader class for using pattern templates in other applications.

The loader supports two methods of including patterns:

Caching the loader

Once created, the loader class can be stored in a cache to save time during the next request. If Memcache is available:

If Stash is being used:

Combining with other loaders

The Labcoat loader can be chained with other loaders:

Creating HTML documents

The Document class makes full HTML pages from patterns:

Generating style guides

Labcoat can generate style guides that use the Pattern Lab interface

Use PHP's built-in webserver to browse the style guide locally (at http://localhost:8080, in this example):

Reporting

The generate() method returns a report object, which can be printed to obtain a summary of the generation process:

Which produces something like:

To get a full report of style guide file changes, use the verbose() method of the report:

Validating template content

Labcoat can use pattern data files to validate classes that will represent live content in production environments.

For example, a template named molecules-event could have the following data file:

In production, the event variable will be an instance of the Event class. This class has properties and methods that Twig will treat like attributes of the variable.

Labcoat provides test methods to ensure that the Event class has all the attributes of event which are present in the data file.

When this test is run, the output will be something like this:


All versions of labcoat with dependencies

PHP Build Version
Package Version
Requires pattern-lab/styleguidekit-twig-default Version *
twig/twig Version ~1.0
symfony/yaml Version ~3.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package daspete/labcoat contains the following files

Loading the files please wait ....