PHP code example of shippinno / template

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

    

shippinno / template example snippets


use League\Flysystem\Adapter\Local;
use League\Flysystem\Filesystem;
use Shippinno\Template\Liquid;

$filesystem = new Filesystem(new Local('/templates'));
$liquid = new Liquid($filesystem);
$liquid->render('hello', ['you' => 'Shippinno']); // => 'Hello, Shippinno !!'

use Spatie\Dropbox\Client;
use Spatie\FlysystemDropbox\DropboxAdapter;

$client = new Client('AUTH_TOKEN');
$filesystem = new Filesystem(new DropboxAdapter($client));
$liquid = new Liquid($filesystem);
// ...

$twig = new Twig;
$twig->renderSource('Hello, {{ you }} !!', ['you' => 'Shipiinno']); // => 'Hello, Shippinno !!'