PHP code example of creativeservices / workshop

1. Go to this page and download the library: Download creativeservices/workshop 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/ */

    

creativeservices / workshop example snippets

`


$templatesDir = '/path/to/templates';

$twig = new \Twig_Environment(new \Twig_Loader_Filesystem($templatesDir));
$this->setTwig($twig);

$templates = new TemplateDirectory($templatesDir);
$this->setTemplates($templates);
`
./vendor/bin/workshop serve workshop.php