klan1/k1lib.html
Composer 安装命令:
composer require klan1/k1lib.html
包简介
HTML components for k1lib
README 文档
README
A comprehensive PHP library for generating HTML documents and components using an object-oriented approach. This package is a modular extraction of the HTML generation tools from the main k1lib library.
Features
-
DOM-like Structure: Create HTML documents by nesting objects, mirroring the natural structure of HTML.
-
Comprehensive Tag Support: Dedicated classes for almost all standard HTML tags (
div,table,form,input,p, etc.). Recently expanded to include full Semantic Layout, Text Formatting, Table and List tags. -
Framework Integrations: Built-in support for Bootstrap specialized components and methods for layouts.
-
Flexible Attributes: Easily set and modify HTML attributes through a fluent API.
-
Component-Based: Includes reusable components like accordions, modals, and grids.
Installation
Install via Composer:
composer require klan1/k1lib.html
Quick Start
use k1lib\html\html_document; use k1lib\html\body; use k1lib\html\div; $doc = new html_document(); $body = $doc->append_body(); $div = $body->append_div("main-container"); $div->set_value("Hello, k1lib.html!"); echo $doc->generate();
License
This project is licensed under the Apache-2.0 License.
Alejandro Trujillo Jiménez Klan1 Labs - R&D Team Website: klan1.com
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2026-04-28