定制 ui-awesome/html-field 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ui-awesome/html-field

Composer 安装命令:

composer require ui-awesome/html-field

包简介

HTML Awesome Field for PHP.

README 文档

README

UI Awesome Field for PHP.


PHPUnit Codecov Infection Psalm Psalm Coverage Style ci

This library provides a way to generate HTML code for various types of form fields, including text, text area, selection, checkbox, radio, and all input types.

<?php

declare(strict_types=1);

use App\Model\BasicForm;

echo Field::widget(new BasicForm(), 'fruits')
    ->input(
        CheckboxList::widget()
            ->items(
                Checkbox::widget()->label('Apple')->value(1),
                Checkbox::widget()->label('Banana')->value(2),
                Checkbox::widget()->label('Orange')->value(3),
            )
    )
    ->render()

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist ui-awesome/html-field:^0.1

or add

"ui-awesome/html-field": "^0.1"

to the require section of your composer.json file.

Usage

Check the documentation docs to learn about usage.

Testing

Check the documentation testing to learn about testing.

Support versions

PHP81

License

The MIT License (MIT). Please see License File for more information.

Our social networks

Twitter

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: mit
  • 更新时间: 2024-03-21