1. Go to this page and download the library: Download stefan-wiebe/elements 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/ */
stefan-wiebe / elements example snippets
use Elements\Element;
$attributes = [
'id' => 'wrap-god',
'class' => ['fresh', 'mexican', 'tortilla'],
];
$div = new Element('div', $attributes);
use Elements\Element;
$div = Element::withClasses('div', 'undetected unexpected');