https://github.com/rustamwin/attributes
Handling PHP Attributes by spiral/attributes
https://github.com/rustamwin/attributes
attributes hacktoberfest php-attributes php8
Last synced: 4 months ago
JSON representation
Handling PHP Attributes by spiral/attributes
- Host: GitHub
- URL: https://github.com/rustamwin/attributes
- Owner: rustamwin
- License: mit
- Created: 2020-12-21T16:54:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-09T17:53:43.000Z (12 months ago)
- Last Synced: 2025-01-17T23:24:52.093Z (6 months ago)
- Topics: attributes, hacktoberfest, php-attributes, php8
- Language: PHP
- Homepage:
- Size: 70.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
PHP Attributes
[](https://packagist.org/packages/rustamwin/attributes)
[](https://packagist.org/packages/rustamwin/attributes)
[](https://github.com/rustamwin/attributes/actions?query=workflow%3Abuild)
[](https://scrutinizer-ci.com/g/rustamwin/attributes/?branch=master)
[](https://scrutinizer-ci.com/g/rustamwin/attributes/?branch=master)
[](https://dashboard.stryker-mutator.io/reports/github.com/rustamwin/attributes/master)
[](https://github.com/rustamwin/attributes/actions?query=workflow%3A%22static+analysis%22)## Requirements
- PHP 8.0 or higher.
## Installation
The package could be installed with composer:
```
composer require rustamwin/attributes --prefer-dist
```## General usage
### Unit testing
The package is tested with [PHPUnit](https://phpunit.de/). To run tests:
```shell
./vendor/bin/phpunit
```### Mutation testing
The package tests are checked with [Infection](https://infection.github.io/) mutation framework. To run it:
```shell
./vendor/bin/roave-infection-static-analysis-plugin
```### Static analysis
The code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis:
```shell
./vendor/bin/psalm
```