PHP code example of timefinancehub / syntaxsanctuary
1. Go to this page and download the library: Download timefinancehub/syntaxsanctuary 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/ */
timefinancehub / syntaxsanctuary example snippets
Rmo\Syntaxsanctuary\Page;
// 1. Create a new page
$page = new Page('SYNTAXSANCTUARY');
// 2. Add metadata and stylesheets
$page->addMeta(['name' => 'viewport', 'content' => 'width=device-width, initial-scale=1.0']);
$page->addLink(['href' => 'https://fonts.googleapis.com/css2?family=Orbitron', 'rel' => 'stylesheet']);
$page->setStyle('body { font-family: "Orbitron", sans-serif; }');
// 3. Render the page
echo $page->render();