PHP code example of monolyth / cachet
1. Go to this page and download the library: Download monolyth/cachet 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/ */
monolyth / cachet example snippets
// For example:
$twig = new Twig\Environment(new Twig\Loader\FilesystemLoader(__DIR__));
//...your other Twig stuff...
Monolyth\Cachet\Twig::inject('path/to/version/file.json', $twig);