klan1/k1lib.html 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2026-04-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固