Download the PHP package brenoroosevelt/php-attributes without Composer
On this page you can find all versions of the php package brenoroosevelt/php-attributes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download brenoroosevelt/php-attributes
More information about brenoroosevelt/php-attributes
Files in brenoroosevelt/php-attributes
Download brenoroosevelt/php-attributes
More information about brenoroosevelt/php-attributes
Files in brenoroosevelt/php-attributes
Vendor brenoroosevelt
Package php-attributes
Short Description Easy way to handle PHP Attributes
License MIT
Homepage http://github.com/brenoroosevelt/php-attributes
Package php-attributes
Short Description Easy way to handle PHP Attributes
License MIT
Homepage http://github.com/brenoroosevelt/php-attributes
Please rate this library. Is it a good library?
Informations about the package php-attributes
PHP Attributes
Easy way to extract and handle PHP Attributes.
Requirements
- PHP >= 8.1
Install
Usage
Instead of doing like this:
With this package you can simplify:
Explaining parameters in detail:
All these methods will return a collection of ParsedAttribute
.
fromClass(string|object|array $objectOrClass): Collection
fromProperties(string|object|array $objectOrClass, string ...$property)
fromMethods(string|object|array $objectOrClass, string ...$method)
fromClassConstants(string|object|array $objectOrClass, string ...$constant)
fromParameters(string|object|array $objectOrClass, string $method, string ...$parameter)
fromConstructor(string|object|array $objectOrClass)
fromConstructorParameters(string|object|array $objectOrClass, string ...$parameter)
The Collection class is immutable and fluent:
Contributing
Run test suite
Run analysis
- Test suite
- Static analysis
- Coding Standard
License
This project is licensed under the terms of the MIT license. See the LICENSE file for license rights and limitations.
All versions of php-attributes with dependencies
PHP Build Version
Package Version
The package brenoroosevelt/php-attributes contains the following files
Loading the files please wait ....