PHP code example of corneltek / twig-markdown

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

    

corneltek / twig-markdown example snippets

 
# use built-in twig autoloader
debug = new \Twig_Extensions_Extension_Debug;
$twig->addExtension( $debug );

$markdown = new \Twig_Extension_Markdown;
$twig->addExtension( $markdown );
shell
php composer.phar install