yarco / fast_gster
A simple way to add getter/setter feature by using attribute grammar
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/yarco/fast_gster
Requires
- php: >=8.2
- symfony/expression-language: ^7.0
Requires (Dev)
- phpunit/phpunit: ^11.0
This package is auto-updated.
Last update: 2025-09-29 03:07:42 UTC
README
Install
composer require yarco/fast-gster
Usage
<?php use \Yarco\FastGster\{Base, Get, Set}; class Example03 { use Base; // comparing to define "getName, setName" by hand #[Get, Set] private string $name; // can also add a guard, will throw an exception if the guard is not met #[Get, Set('age > 0 and age < 120')] private int $age; }
see more in tests/
.