1. Go to this page and download the library: Download asar/elementary 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/ */
asar / elementary example snippets
$el = new Elementary\ElementBuilder;
echo
$el->html(
$el->head(
$el->meta_(array('charset'=> 'utf-8')),
$el->title('Elementary Example')
),
$el->body(
$el->h1('Elementary Demonstration & Examples'),
$el->div(
array('id' => 'contents'),
$el->p('This is an example paragraph.')
)
)
);