PHP code example of ui-awesome / model
1. Go to this page and download the library: Download ui-awesome/model library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ui-awesome / model example snippets
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;
}