Download the PHP package celema/boiler without Composer

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

Celema Boiler

ci code coverage type coverage psalm level

Boiler is a small template engine for PHP 8.5+, inspired by Plates. Like Plates, it uses native PHP as its templating language rather than introducing a custom syntax.

Key differences from Plates:

Other highlights:

Installation

Install Symfony's HTML sanitizer when you want Boiler's built-in sanitize filter:

Documentation

Start here: docs/index.md.

Topic overview

Quick start

Consider this example directory structure:

Create a template file at /path/to/templates/page.php with this content:

Then initialize the Engine and render your template:

Common patterns

Render from multiple directories, optionally with namespaces:

Control escaping:

Configure shared defaults and trusted classes:

Register custom template methods with method(). Pass safe: true when a helper returns safe HTML:

Methods are available as $this->icon() inside templates, inserts, and layouts.

Register custom filters with the fluent filter() method:

Filters are available as virtual methods on wrapped string values in templates. In escaped renders, Boiler wraps string values for you. When you need filters on a raw value inside a template, call $this->wrap($value) first. Boiler ships with built-in lower, upper, stripTags, and trim filters, and registers sanitize automatically when symfony/html-sanitizer is installed.

For filter safety rules and advanced wrapper, filter, and escaper customization, see template.

Template helpers available via $this inside templates:

Wrapped values are proxy objects, so === against a plain value is always false, and native string functions such as str_contains() silently operate on the escaped text. Compare and test through the proxy's predicate methods instead, which work on the raw value: $item->status->is(Status::Active), $status->in(['draft', 'pending']), $title->contains('&'), $url->startsWith('https://'), $file->endsWith('.pdf'), $slug->matches('/^[a-z0-9-]+$/'), and $tags->contains('featured') on wrapped arrays. See comparing wrapped values.

Error handling

Boiler fails fast on invalid lookups and render state, such as missing templates, invalid template names, duplicate layouts, unclosed sections, missing slots, or unknown methods and filters. See template for the exact rules.

Benchmark

Boiler includes a canonical benchmark in bench/ that renders a feature-rich catalog page and is used mainly to catch performance regressions during development.

Run it with composer benchmark. For benchmark scope, caveats, and detailed usage, see bench/README.md.

Run the tests

For the PHP verification pipeline, run:

composer ci:full additionally lints Markdown and requires Node (npx).

License

This project is licensed under the MIT license.


All versions of boiler with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
ext-mbstring Version *
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 celema/boiler contains the following files

Loading the files please wait ...