pjpawel/magis-bundle

The Symfony bundle to PHP templates

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

v0.1.1 2022-12-23 13:40 UTC

This package is auto-updated.

Last update: 2024-04-23 16:41:51 UTC


README

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 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);
    }

}