ui-awesome/form-model 问题修复 & 功能扩展

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

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

ui-awesome/form-model

最新稳定版本:0.1.0

Composer 安装命令:

composer require ui-awesome/form-model

包简介

UIAwesome Form Model for PHP.

README 文档

README

UIAwesome Form Model for PHP.


PHPUnit Codecov Infection Psalm Psalm Coverage Style ci

Is a library that provides a flexible and easy way to create and validate fields for web forms, models, and other data structures.

<?php

declare(strict_types=1);

namespace App\FormModel;

use UIAwesome\FormModel\AbstractFormModel;

final class User extends AbstractFormModel
{
    private string $username = '';

    public function getHints(): array
    {
        return [
            'username' => 'The hint for the field.',
        ];
    }
    
    public function getLabels(): array
    {
        return [
            'username' => 'The label for the field.',
        ];
    }

    public function getPlaceholders(): array
    {
        return [
            'username' => 'The placeholder for the field.',
        ];
    }
}

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist ui-awesome/form-model:"^0.1"

or add

"ui-awesome/form-model": "^0.1"

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

统计信息

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

GitHub 信息

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

其他信息

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