vaened/laravel-structer

Helpers for typical structures in a development

Maintainers

Package info

github.com/vaened/laravel-structer

pkg:composer/vaened/laravel-structer

Statistics

Installs: 12

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.7 2024-07-22 17:10 UTC

This package is auto-updated.

Last update: 2026-02-22 20:52:17 UTC


README

Helpers for typical structures in a development

Build Status Software License

class PersonStruct extends Structurable
{
    #[Property(column: 'id')]
    protected int $ID;

    #[Property(column: 'first_name')]
    protected string $firstName;

    #[Property(column: 'last_name')]
    protected string $lastName;

    #[Property(column: 'phone_number')]
    protected ?string $phoneNumber;

    #[Property(column: 'country_id', references: 'countries')]
    protected ?string $countryID;

    #[Property(column: 'sex')]
    protected ?Sex     $sex;

    #[Property(column: 'birth_date')]
    protected ?Carbon  $birthDate;

    #[Property]
    protected Document $document;
}