承接 ui-awesome/model 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

ui-awesome/model

最新稳定版本:0.1.0

Composer 安装命令:

composer require ui-awesome/model

包简介

UIAwesome Model for PHP.

README 文档

README

UIAwesome Model for PHP.


PHPUnit Codecov Infection Psalm Psalm Coverage Style ci

The UIAwesome Model package provides a robust set of tools for managing data models in PHP applications.

<?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;
}

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

"ui-awesome/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

统计信息

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

GitHub 信息

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

其他信息

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