PHP code example of mml / twigstem
1. Go to this page and download the library: Download mml/twigstem 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/ */
mml / twigstem example snippets
// path to application src directory (directory containing views and data)
$appDir = dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR;
// Instantiate and run Twigstem
$Twigstem = \Twigstem\Server::getInstance();
$Twigstem->init($appDir)->serve();