pjpawel / magis
PHP templates engine
v0.2.0
2022-12-22 23:13 UTC
Requires
- php: >=8.1
Requires (Dev)
- phpstan/phpstan: ^1.9
- phpunit/phpunit: 9.5.*
This package is auto-updated.
Last update: 2024-10-29 06:13:24 UTC
README
Services for symfony bundle for php templates rendering
Why Magis?
- It's incredible fast!
- It's easy to understand!
- It can implement all services you need!
Install
If you want to install Magis as symfony bundle you should use MagisBundle
composer require pjpawel/magis-bundle
If you want raw view service and view classes use (this repository)
composer require pjpawel/magis
Library classes
\pjpawel\Magis\ViewDispatcherService::class // service to dependency injection \pjpawel\Magis\View\DirectView::class // simple view class that has method render() to ... render template :) \pjpawel\Magis\View\MagicView::class // rich view class
Usage
You should use ViewDispatcherService
as dependency injection service.
You can create custom service to render view or use create Views directly.