PHP code example of dev-lucid / html
1. Go to this page and download the library: Download dev-lucid/html 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/ */
dev-lucid / html example snippets
# in PHP!
# (this assumes you've configured an autoloader to find this class)
$factory = new \Lucid\Html\Factory();
$myAnchor = $factory->build('anchor', 'http://google.com', 'google');
echo($myAnchor->render());
sh
bin/makeTagPHP.php ./src/Base/meta/anchor.json
# This will generate ./src/Base/tags/anchor.php
sh
bin/makeJsDist.php