ardhan/laravel-simple-html

此包的最新版本(v0.6-alpha)没有可用的许可信息。

通过控制器轻松创建HTML

v0.6-alpha 2020-08-13 01:11 UTC

This package is auto-updated.

Last update: 2024-09-13 11:02:57 UTC


README

无需离开控制器即可创建HTML。

本包将帮助您通过控制器创建HTML。

安装方法

composer require ardhan/laravel-simple-html

使用示例

<?php
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;
  }
}

元数据

Ardhan Wahyu Rahmanu – https://rahmanu.comardhan.matematika@gmail.com

https://github.com/ardhan/