Skip to content
/ Magis Public

Services for symfony bundle for php templates rendering

License

Notifications You must be signed in to change notification settings

pjpawel/Magis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magis

Services for symfony bundle for php templates rendering

Latest Version on Packagist Scrutinizer Code Quality PHPStanLevel

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.