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;
}
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"
Check the documentation docs to learn about usage.
Check the documentation testing to learn about testing.
The MIT License (MIT). Please see License File for more information.