From b976cf2bc569bae14fb58843dc65189bf61e8603 Mon Sep 17 00:00:00 2001 From: pjpawel Date: Wed, 23 Nov 2022 22:41:02 +0100 Subject: [PATCH] Update readme --- README.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/README.md b/README.md index f9ddec7..eb99387 100644 --- a/README.md +++ b/README.md @@ -1 +1,39 @@ # MagisBundle + +*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](https://github.com/pjpawel/Magis) +``` +composer require pjpawel/magis +``` + +## Usage + +In container, you will find `magis` alias for `ViewDispatcherService`; +You should use 'AbstractMagisController': +```php +use pjpawel\Magis\MagisBundle\Controller\AbstractMagisController; +use Symfony\Component\HttpFoundation\Response; + +class FooController extends AbstractMagisController +{ + + public function test(): Response + { + return $this->renderPhpView($templateName, $params); + } + +} +``` \ No newline at end of file