PHP code example of kornineqnetwork / xevmium
1. Go to this page and download the library: Download kornineqnetwork/xevmium 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/ */
kornineqnetwork / xevmium example snippets
kornineqnetwork\Xevmium\Run;
$app = new Run();
$app->register();
// Build a simple page
$app->buildSite(
pageTitle: 'My Website',
fileTitle: 'Home',
themeName: 'blue',
navItems: [
['url' => '/', 'title' => 'Home'],
['url' => '/about', 'title' => 'About']
],
content: '<h1>Welcome to my website!</h1>',
copyright: 'Your Name'
);
$xevmium->createButton('Click Me', '/destination', 'custom-class');
$headers = ['Name', 'Age', 'Location'];
$rows = [
['John Doe', '25', 'New York'],
['Jane Smith', '30', 'London']
];
$xevmium->addTable($headers, $rows);
$markdownParser = new MarkdownParser();
$markdownParser->loadMarkdownPage('content.md');
$app = new Run();
$app->register();
$app->settheme('purple');
$xevmium = $app->build('My Website', 'Custom Page');
$xevmium->buildHeader();
$xevmium->center('start');
$xevmium->createButton('Learn More', '#', 'custom-btn');
$xevmium->center('stop');
$xevmium->buildFooter('Your Company');