Download the PHP package gajus/brick without Composer

On this page you can find all versions of the php package gajus/brick. 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 brick

Brick

Build Status Coverage Status Latest Stable Version

PHP template system that's fast, easy to use and easy to extend.

About Brick

Brick is not a template engine that would lex/parse template as a string (think Twig).

Some of you might remember Chad Minick's article "Simple PHP Template Engine" (2009; Has it been that long?). I have been using a variation of an abstraction following the principles outlined in Chad's article for a long time. Brick is the final of the gang. I am happy with the API, I am happy with the inheritance rules, scope definition; it is perfect!

I am using Brick in several freelance projects and I am making it open to others. I am looking for people who share the same mindset about what template processing in PHP should be. Contributors and critique is welcome.

– http://www.reddit.com/r/PHP/comments/2nduuc/brick/

Features

The following examples together with the included unit tests will set you going. Please raise an issue if you feel that there are bits that need to be clarified.

Overview

System

System class is responsible for template resolution and scope management.

Public methods:

Subsystem

Subsystem class is responsible for template resolution and scope management.

Views that are built using an instance of System will be using Subsystem to produce inner views. This restricts a template access to controlling the globals and other sensitive variables.

Public methods:

Template

Template class is responsible for isolating template execution scope, extracting scope variables and capturing the output buffer.

Public methods:

Getting Started

Producing a View

Template file must have a ".php" extension. When referring to templates, do not include the file extension. You can change the name of the extension:

View Scope

Assigning Variables

Scope variables are extracted to the execution context of the template, i.e. template can access them as regular variables.

Scope variables are assigned at the time of producing a view.

Globals

Views produced using the same instance of the System have access to a $globals variables.


All versions of brick with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
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 gajus/brick contains the following files

Loading the files please wait ....