ui-awesome / model
UIAwesome 模型用于 PHP。
0.1.0
2024-03-18 21:49 UTC
Requires
- php: ^8.1
- ext-mbstring: *
Requires (Dev)
- maglnet/composer-require-checker: ^4.7
- phpunit/phpunit: ^10.5
- roave/infection-static-analysis-plugin: ^1.34
- symplify/easy-coding-standard: ^12.1
- vimeo/psalm: ^5.22
This package is auto-updated.
Last update: 2024-09-18 22:57:19 UTC
README
UIAwesome 模型用于 PHP。
UIAwesome 模型包为 PHP 应用程序中的数据模型管理提供了一套强大的工具。
<?php declare(strict_types=1); namespace App\Model; use UIAwesome\Model\{AbstractModel, Attribute\DoNotCollect, Attribute\Timestamp}; final class User extends AbstractModel { private int $age; private string $name; #[DoNotCollect] // attribute for do not collect private int $flag = 0; private bool $isActive; #[Timestamp] // attribute for timestamp private int $updatedAt = 0; }
安装
建议通过 Composer 安装此扩展。
运行以下命令之一
composer require --prefer-dist ui-awesome/model:"^0.1"
或添加
"ui-awesome/model": "^0.1"
使用方法
测试
支持版本
许可证
MIT 许可证 (MIT)。有关更多信息,请参阅 许可证文件。