Download the PHP package atelierspierrot/templatengine without Composer

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

Template Engine

documentation

A PHP package to build HTML5 views (based on HTML5 Boilerplate layouts and the Composer Assets Plugin).

What is this package ?

This package defines a simple Template Engine to manage PHP view files, some HTML files including PHP scripts to build views passing them parameters and objects and some tools to manage global layouts to embed these views. As it is based on the Composer Assets Plugin, the Template Engine also facilitate assets files usage and URL.

This package is not yet really documented. Please take a look at the code and the PHP Documentation for more information. A complete demonstration is available in the package itself (PHP server is required).

Installation

This package requires that you use Composer to manage your dependencies.

To use the package, you need to add it to your requirements in your composer.json AND to call its TemplateEngineInstaller::postAutoloadDump for the post-autoload-dump Composer's event:

"require": {
    ...
    "atelierspierrot/templatengine": "1.*"
},
...
"scripts": {
    ...
    "post-autoload-dump": "Assets\\Composer\\TemplateEngineInstaller::postAutoloadDump"
}

The Assets and TemplateEngine namespaces will be automatically added to the project Composer autoloader.

Composer Extra settings

Using the Template Engine, you can define some extra features in your package's composer.json to specify some paths and presets used by the engine.

Example

Below is the example of the package default configuration values added to the default Composer Assets Plugin configuration values:

"extra": {
    "views": [ "www", "www/html5boilerplate" ],
    "views-functions": "src/TemplateEngine/views_functions.php",
    "cache-dir": "tmp",
    "cache-assets-dir": "tmp_assets",
    "layouts": "www/html5boilerplate"
}

views: array|string

This defines one or more relative paths from your package root directory where to find your view files. These directories must exist and defaults to www/ (the default assets directory).

views-functions: array|string

The view functions are loaded before any view rendering and may define some useful methods to use in your view files. See the Views Functions section below for more infos.

This entry defines one or more relative file paths from your package root directory where to find your view functions. These files must exist.

cache-dir: string

This defines the relative path from your assets directory to generate temporary files. If it does not exist, the directory will be created. This setting defaults to tmp/.

cache-assets-dir: string

This defines the relative path from your assets directory to generate temporary assets files such as merged or minifies CSS or JS. If it does not exist, the directory will be created. This setting defaults to tmp_assets/.

layouts: array|string

This defines one or more relative paths from your package root directory where to find your layout files, the global templates to use as other partial views wrapper. These directories must exist.

Views functions

Any package defining the extra views-functions setting can define a set of standalone methods to use in view files ; all functions files of the declared views-functions are loaded for all views, so all of these methods may be accessible in any view file.

Author & License

Template Engine

http://github.com/atelierspierrot/templatengine

Copyright (c) 2013-2016 Pierre Cassat and contributors

Licensed under the Apache 2 license.

http://www.apache.org/licenses/LICENSE-2.0


Les Ateliers Pierrot - Paris, France

http://www.ateliers-pierrot.fr/ - [email protected]


All versions of templatengine with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
atelierspierrot/patterns Version 1.*
atelierspierrot/library Version 1.*
atelierspierrot/assets-manager Version 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 atelierspierrot/templatengine contains the following files

Loading the files please wait ....