Search by

miniframe / twig-bundle

Garrcomm

Addon for using Twig templates in the Miniframe PHP Framework.

Package info

bitbucket.org/miniframe/twig-bundle

Homepage

pkg:composer/miniframe/twig-bundle

Statistics

Installs: 118

Dependents: 0

Suggesters: 1

v1.0.0 2021-02-05 19:31 UTC

This package is auto-updated.

Last update: 2026-10-16 15:33:54 UTC


README

This library adds Twig support to the Miniframe PHP Framework.

build code coverage

How to use

  1. In your existing project, type: composer require miniframe/twig-bundle
  2. Add the directive below to your config.ini
  3. Put templates in $projectroot/templates

Example config.ini directives

[framework]
base_href        = /
middleware[twig] = Miniframe\Middleware\Twig

[twig]
cache_path      = cache/twig/
template_path[] = templates/

Docker shortcuts

In the bin folder, a few batch files and shell scripts exist, to make development easier.

If you install Docker Desktop for Windows or Docker on Linux, you can use the scripts in bin (for example bin\composer.bat for Windows or bin/composer.sh for Linux) to run Bash, Composer, CodeSniffer, PHPUnit, PHPStan and Security Checker, without the need of installing PHP and other dependencies on your machine.

The same Docker container and tools are used in Bitbucket Pipelines to automatically test this project.