PHP code example of pjpawel / magis

1. Go to this page and download the library: Download pjpawel/magis library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

pjpawel / magis example snippets


\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