PHP code example of ardhan / laravel-simple-html
1. Go to this page and download the library: Download ardhan/laravel-simple-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/ */
ardhan / laravel-simple-html example snippets
namespace App\Http\Controllers;
use Page;
use Element;
class PageController extends Controller{
function halaman()
{
$page = Page::author('Ardhan Wahyu Rahmanu')->description('ini adalah halaman')->title('Halaman');
$div = Element::div('ini adalah div')->cls('attribut_kelas')->id('attribut_id');
$page->content($div);
echo $page;
}
}