PHPackages                             testflowlabs/test-attributes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. testflowlabs/test-attributes

ActiveLibrary[Testing &amp; Quality](/categories/testing)

testflowlabs/test-attributes
============================

PHP 8 attributes for testing - BDD steps and test traceability

v1.0.0(4mo ago)11621MITPHPPHP ^8.3

Since Dec 13Pushed 4mo agoCompare

[ Source](https://github.com/TestFlowLabs/test-attributes)[ Packagist](https://packagist.org/packages/testflowlabs/test-attributes)[ RSS](/packages/testflowlabs-test-attributes/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (1)

Test Attributes
===============

[](#test-attributes)

> PHP 8 attributes for testing - BDD steps and test traceability

[![PHP Version](https://camo.githubusercontent.com/ef0054230522e542bc1f908ac005c6c75888dea255bac910f9015e12095e31d7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e332d626c7565)](https://php.net)[![License](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](LICENSE)

Lightweight PHP 8 attributes for use with testing plugins.

Installation
------------

[](#installation)

```
composer require testflowlabs/test-attributes
```

Attributes
----------

[](#attributes)

AttributeTargetPurposeUsed By`#[Given]`Method/FunctionBDD step - Arrange`testflowlabs/pest-plugin-bdd``#[When]`Method/FunctionBDD step - Act`testflowlabs/pest-plugin-bdd``#[Then]`Method/FunctionBDD step - Assert`testflowlabs/pest-plugin-bdd``#[TestedBy]`MethodMark production method as tested by specific test`testflowlabs/testlink``#[Links]`MethodLink test to production code (traceability only)`testflowlabs/testlink``#[LinksAndCovers]`MethodLink test to production code + coverage`testflowlabs/testlink`All attributes are repeatable.

Why Separate Package?
---------------------

[](#why-separate-package)

This package is a **production** dependency, while testing plugins remain **dev** dependencies.

```
{
    "require": {
        "testflowlabs/test-attributes": "^1.0"
    },
    "require-dev": {
        "testflowlabs/pest-plugin-bdd": "^0.1",
        "testflowlabs/testlink": "^0.1"
    }
}
```

This allows annotating code with attributes without pulling in test runners.

License
-------

[](#license)

MIT License. See [LICENSE](LICENSE) for details.

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance78

Regular maintenance activity

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

146d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/05d6915609eea8475f73ab74a8b90adf726b3a0b303da89a8df4c86722b667f2?d=identicon)[deligoez](/maintainers/deligoez)

---

Top Contributors

[![deligoez](https://avatars.githubusercontent.com/u/3030815?v=4)](https://github.com/deligoez "deligoez (13 commits)")

---

Tags

phpcoverageBDDattributestraceabilitytest-attributestest-metadata

### Embed Badge

![Health badge](/badges/testflowlabs-test-attributes/health.svg)

```
[![Health](https://phpackages.com/badges/testflowlabs-test-attributes/health.svg)](https://phpackages.com/packages/testflowlabs-test-attributes)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[peridot-php/peridot

Event driven BDD test framework for PHP 7.1+

326194.6k128](/packages/peridot-php-peridot)[dvdoug/behat-code-coverage

Generate Code Coverage reports for Behat tests

593.6M37](/packages/dvdoug-behat-code-coverage)[leanphp/behat-code-coverage

Generate Code Coverage reports for Behat tests

50359.8k2](/packages/leanphp-behat-code-coverage)[vipsoft/code-coverage-extension

Behat code coverage collector

2186.5k2](/packages/vipsoft-code-coverage-extension)[friends-of-phpspec/phpspec-code-coverage

Generate Code Coverage reports for PhpSpec tests

202.6M123](/packages/friends-of-phpspec-phpspec-code-coverage)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
