pjpawel / magis-bundle
The Symfony bundle to PHP templates
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.1
- pjpawel/magis: 0.*
- symfony/framework-bundle: ^6.1
- symfony/twig-bridge: ^6.1
- symfony/yaml: ^6.1
Requires (Dev)
- phpstan/phpstan: ^1.9
- phpunit/phpunit: 9.5.*
README
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 symfony bundle
composer require pjpawel/magis-bundle
If you want raw view service and view classes use Magis
composer require pjpawel/magis
Usage
In container, you will find magis
alias for ViewDispatcherService
;
You should use 'AbstractMagisController':
use pjpawel\Magis\MagisBundle\Controller\AbstractMagisController; use Symfony\Component\HttpFoundation\Response; class FooController extends AbstractMagisController { public function test(): Response { return $this->renderPhpView($templateName, $params); } }