Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rustamwin/attributes
Handling PHP Attributes by spiral/attributes
https://github.com/rustamwin/attributes
attributes hacktoberfest php-attributes php8
Last synced: about 2 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 (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-09T17:53:43.000Z (6 months ago)
- Last Synced: 2024-10-11T21:53:51.478Z (2 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
[![Latest Stable Version](https://poser.pugx.org/rustamwin/attributes/v/stable.png)](https://packagist.org/packages/rustamwin/attributes)
[![Total Downloads](https://poser.pugx.org/rustamwin/attributes/downloads.png)](https://packagist.org/packages/rustamwin/attributes)
[![Build status](https://github.com/rustamwin/attributes/workflows/build/badge.svg)](https://github.com/rustamwin/attributes/actions?query=workflow%3Abuild)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/rustamwin/attributes/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/rustamwin/attributes/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/rustamwin/attributes/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/rustamwin/attributes/?branch=master)
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Frustamwin%2Fattributes%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/rustamwin/attributes/master)
[![static analysis](https://github.com/rustamwin/attributes/workflows/static%20analysis/badge.svg)](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
```