pjpawel / magis
PHP templates engine
Installs: 33
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 2
pkg:composer/pjpawel/magis
Requires
- php: >=8.1
Requires (Dev)
- phpstan/phpstan: ^1.9
- phpunit/phpunit: 9.5.*
This package is auto-updated.
Last update: 2025-09-29 03:13:51 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.