1. Go to this page and download the library: Download buttress/phpx 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/ */
buttress / phpx example snippets
$x = new Buttress\Phpx\Phpx();
$github = 'https://github.com/buttress/phpx';
echo $x->render(
$x->main(class: 'content', c: [
$x->h1(id: 'title', c: 'Hello World!'),
$x->p(c: [
'Brought to you by ',
$x->a(href: $github, c: 'PHPX')
]),
])
);