gluephp / glue-plates
Use leage/plates templating engine in Glue
Installs: 137
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/gluephp/glue-plates
Requires
- php: >=5.5.0
- league/plates: ^3.1
This package is not auto-updated.
Last update: 2025-10-09 06:14:20 UTC
README
Use leauge/plates with gluephp/glue
Installation
Use Composer:
$ composer require gluephp/glue-plates
Configure Plates
$app = new Glue\App; $app->config->override([ 'plates' => [ 'path' => '/absolute/path/to/templates/folder', ], ]);
Register Plates
$app->register( new Glue\Plates\ServiceProvider() );
Get the Plates instance
Once the service provider is registered, you can fetch the Plates instance with:
$plates = $app->make('League\Plates\Engine');
or use the alias:
$plates = $app->plates;