pjpawel/magis

PHP templates engine

v0.2.0 2022-12-22 23:13 UTC

This package is auto-updated.

Last update: 2024-10-29 06:13:24 UTC


README

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.