Download the PHP package changhorizon/bs5-renderers without Composer

On this page you can find all versions of the php package changhorizon/bs5-renderers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package bs5-renderers

BS5 Renderers

Bootstrap 5 HTML rendering components for admin panels

License Latest Version PHP Version Static Analysis Tests codecov CI

✨ 特性

📦 安装

📂 目录结构

🚀 用法示例

Link Button

Form Button

Breadcrumb

Data List Table

Data Tree Table

Page Render

📐 接口说明

所有 HtmlRenderer 类均使用流畅 setter 模式,链式调用后调用 render() 返回 HTML 字符串。

LinkButtonRenderer

方法 说明
href(string) 链接地址
label(string) 按钮文字
style(string) Bootstrap 样式 (primary/success/danger/...)
size(string) 尺寸 (sm/lg)
disabled(bool) 禁用状态
attribute(name, value) 自定义 HTML 属性

DataListRenderer

方法 说明
head(): TableHeadRenderer 配置表头列
row(): TableRowRenderer 配置行
actions(): TableRowActionsRenderer 启用并配置操作按钮列
data(array) 设置数据行
emptyMessage(string) 空数据提示文字
tableClass(string) 表格 CSS 类

DataTreeRenderer

方法 说明
head(): TableHeadRenderer 配置表头列
tree(array) 设置树形数据
idKey(string) 节点 ID 字段名(默认 id)
labelKey(string) 节点标签字段名(默认 label)
childrenKey(string) 子节点字段名(默认 children)

🔍 静态分析

🎯 代码风格

✅ 单元测试

🤝 贡献指南

欢迎 Issue 与 PR,建议遵循以下流程:

  1. Fork 仓库
  2. 创建新分支进行开发
  3. 提交 PR 前请确保测试通过、风格一致
  4. 提交详细描述

📜 License

MIT License. See the LICENSE file for details.


All versions of bs5-renderers with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package changhorizon/bs5-renderers contains the following files

Loading the files please wait ...