Download the PHP package rayful/html without Composer
On this page you can find all versions of the php package rayful/html. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor rayful
Package html
Short Description A HTML php echo class, including output option, radio, checkbox, select, ul, span, label, a, and so on. Can be extended to any HTML elements.
License MIT
Package html
Short Description A HTML php echo class, including output option, radio, checkbox, select, ul, span, label, a, and so on. Can be extended to any HTML elements.
License MIT
Please rate this library. Is it a good library?
Informations about the package html
HTML
一个后台使用的直接把HTML的元素输出封装好的类。
安装
composer require rayful/html
命名规则
为了让代码在HTML文件里看得更舒服,因此关于输出HTML的类比如:select、option、a等全部用小写。
文件分布及用类区别
- Element目录:只生成某些元素,不设定任何参数。
- Generator目录:可通过构造函数里面传参,直接构造出特定的元素。(为方便,Generator里面构造出来的元素,name和id都会同时设定并且一样)
- View目录:和样式有关,将在Generator的基础上再加上样式。
基本用法
模板文件里面:
将输出:
同时option可以自动选中。
进阶用法
请见test/example.php的用法。
效果请见:
- test/bootstrap3.php
- test/bootstrap4.php
Editor.php的使用:
- test/bootstrap3-editor.php
- test/bootstrap4-editor.php
All versions of html with dependencies
PHP Build Version
Package Version
Requires
rayful/object-tool Version
^1.0
The package rayful/html contains the following files
Loading the files please wait ....