Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```