PHP code example of madflow / cheesecake
1. Go to this page and download the library: Download madflow/cheesecake 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/ */
madflow / cheesecake example snippets
$template = __DIR__ .'/mytemplate';
$output = __DIR__ .'/myoutput';
$params = ['project_name' => 'Yeah!'];
$options = [
Generator::OPT_OUTPUT => $output,
Generator::OPT_NO_INTERACTION => true,
];
$o = new Generator($template, $params, $options);
$o->run();