luminar-organization / render-engine
The render engine package for the Luminar PHP framework, supporting different templating engines.
Installs: 172
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/luminar-organization/render-engine
Requires
- php: >=8.2
- luminar-organization/http: *
- twig/twig: ^3.0
Requires (Dev)
- phpunit/phpunit: >=11.3.1
This package is auto-updated.
Last update: 2025-10-21 02:23:40 UTC
README
A custom render engine designed for the Luminar PHP Framework.
Features
- Basic Engine: Simple and effective PHP-based templating.
- TwigEngine: Integration with Twig for powerful templating.
- View: Manages rendering using different engines.
Installation
Install via composer
composer require luminar-organization/render-engine
Usage
Using the BasicEngine
use Luminar\RenderEngine\Engine\BasicEngine; use Luminar\RenderEngine\View; $engine = new BasicEngine('/path/to/views'); $view = new View($renderer); echo $view->render('example', ['name' => 'Luminar'])->getResponse();
Using the TwigEngine
use Luminar\RenderEngine\Engine\TwigEngine; use Luminar\RenderEngine\View; $engine = new TwigEngine('/path/to/views'); $view = new View($engine); echo $view->render('example', ['name' => 'Luminar'])->getResponse();
Contributing
Please see the CONTRIBUTING.md for guidelines in our core repo.
License
This package is licensed under the MIT License
Integration
With these components, you'll have a flexible rendering system in your framework that supports both a simple PHP templating engine and the more advanced Twig templating engine. The setup is extensible, so you can add more engines or features as needed.