PHP code example of ryancco / canon
1. Go to this page and download the library: Download ryancco/canon 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/ */
ryancco / canon example snippets
use Ryancco\Canon;
$canon = new Canon($filesystem);
// using a template file
$canon->generate('hello-world.txt', 'filename.out', ['name' => 'World']);
// using a template string
$canon->generate('Hello, { name }.', 'filename.out', ['name' => 'World']);