Download the PHP package quellabs/canvas-handlebars without Composer

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

Canvas Handlebars Template Engine

A Handlebars template engine integration for the Canvas PHP framework, powered by LightnCandy.

Installation

Requirements

How it works

Unlike output-cache engines (Smarty, Twig), LightnCandy compiles Handlebars templates to native PHP closures. The compiled files are stored in compile_dir and reused across requests. Recompilation only happens when a source template is newer than its compiled counterpart — no opcode cache invalidation overhead.

Usage

The Handlebars template engine is automatically registered with Canvas through the service discovery system.

Template Files

Helpers

Register helpers in config/handlebars.php:

Or register them at runtime via the engine instance:

Use in templates:

Partials

Partials are reusable template fragments. Register them as strings in config or at runtime:

Use in templates:

Configuration

Key Default Description
template_dir templates/ Where .hbs files are stored
compile_dir storage/handlebars/compile/ Where compiled PHP renderers are cached
strict_mode false Throw on missing variables instead of rendering empty
standalone false Embed helpers in compiled output (no runtime dependency)
helpers [] Named helper callables
partials [] Named partial template strings
globals [] Variables available in all templates

Sculpt Commands

Removes all compiled PHP renderers, forcing recompilation on the next request.

License

MIT License


All versions of canvas-handlebars with dependencies

PHP Build Version
Package Version
Requires zordius/lightncandy Version ^1.2
quellabs/dependency-injection Version ^1.
quellabs/contracts Version ^1.
quellabs/sculpt Version ^1.
quellabs/signal-hub Version ^1.
quellabs/support 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 quellabs/canvas-handlebars contains the following files

Loading the files please wait ...