PHPackages                             allure-framework/allure-php-commons - 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. allure-framework/allure-php-commons

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

allure-framework/allure-php-commons
===================================

Allure PHP commons

v2.3.1(2y ago)94.7M—5.1%5[3 PRs](https://github.com/allure-framework/allure-php-commons2/pulls)4Apache-2.0PHPPHP ^8CI passing

Since Sep 15Pushed 3mo ago6 watchersCompare

[ Source](https://github.com/allure-framework/allure-php-commons2)[ Packagist](https://packagist.org/packages/allure-framework/allure-php-commons)[ Docs](http://allure.qatools.ru/)[ RSS](/packages/allure-framework-allure-php-commons/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (13)Used By (4)

Allure PHP Commons
==================

[](#allure-php-commons)

[![Version](https://camo.githubusercontent.com/965ff3babff5056425e3bb210ab2cf1731c5a30f886ddd95f665df6cee512e49/687474703a2f2f706f7365722e707567782e6f72672f616c6c7572652d6672616d65776f726b2f616c6c7572652d7068702d636f6d6d6f6e732f76657273696f6e)](https://packagist.org/packages/allure-framework/allure-php-commons)[![Build](https://github.com/allure-framework/allure-php-commons2/actions/workflows/build.yml/badge.svg)](https://github.com/allure-framework/allure-php-commons2/actions/workflows/build.yml)[![Type Coverage](https://camo.githubusercontent.com/7222ddfae43b2d4ee6c6873e58127ea36aff9ac994102fee0645c8535d4f7c69/68747470733a2f2f73686570686572642e6465762f6769746875622f616c6c7572652d6672616d65776f726b2f616c6c7572652d7068702d636f6d6d6f6e73322f636f7665726167652e737667)](https://shepherd.dev/github/allure-framework/allure-php-commons2)[![Psalm Level](https://camo.githubusercontent.com/63d35e485eee929c65ff98e86ffeb6549ab99c2be435a3df7d6094689af4fda2/68747470733a2f2f73686570686572642e6465762f6769746875622f616c6c7572652d6672616d65776f726b2f616c6c7572652d7068702d636f6d6d6f6e73322f6c6576656c2e737667)](https://shepherd.dev/github/allure-framework/allure-php-commons2)[![License](https://camo.githubusercontent.com/afcb3ccf41befb788ac892e5a62b9ceac842d30b703cd226651423f1dac74ad3/687474703a2f2f706f7365722e707567782e6f72672f616c6c7572652d6672616d65776f726b2f616c6c7572652d7068702d636f6d6d6f6e732f6c6963656e7365)](https://packagist.org/packages/allure-framework/allure-php-commons)

This repository contains PHP API for Allure framework. The main idea is to reuse this API when creating adapters for different test frameworks.

Getting started
---------------

[](#getting-started)

In order to use this API you simply need to add the following to **composer.json**:

```
{
    "require": {
        "php": "^8",
        "allure-framework/allure-php-commons": "^2"
    }
}
```

Custom attributes
-----------------

[](#custom-attributes)

You can easily implement custom attributes and use them with your test framework. In most cases you would like to implement [`Qameta\Allure\Attribute\AttributeSetInterface`](./src/Attribute/AttributeSetInterface.php) that allows to set several attributes at once:

```
