Download the PHP package nayleen/attribute without Composer
On this page you can find all versions of the php package nayleen/attribute. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nayleen/attribute
More information about nayleen/attribute
Files in nayleen/attribute
Download nayleen/attribute
More information about nayleen/attribute
Files in nayleen/attribute
Vendor nayleen
Package attribute
Short Description Provides accessors to single-value PHP Attributes.
License MIT
Package attribute
Short Description Provides accessors to single-value PHP Attributes.
License MIT
Please rate this library. Is it a good library?
Informations about the package attribute
nayleen-attribute
Provides accessors to single-value PHP Attributes.
Installation
composer require nayleen/attribute
Flavors
For ease of use the library provides two identical ways of accessing attribute values:
Usage
Works on both instances and class names:
Throws a MissingAttributeException
if the attribute is not set:
Unless you provide a default value as a third argument:
For heavy lifting or lazy evaluation, a default value can be a callable
:
If the attribute is repeatable, it'll return an array of that attribute's values:
All versions of attribute with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
The package nayleen/attribute contains the following files
Loading the files please wait ....