PHPackages                             diegograssato/apigility-yaml-negotiation - 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. [API Development](/categories/api)
4. /
5. diegograssato/apigility-yaml-negotiation

ActiveLibrary[API Development](/categories/api)

diegograssato/apigility-yaml-negotiation
========================================

Apigility Module providing YAML/YML/TXT content-negotiation features

v1.0(9y ago)015MITPHPPHP ^5.6 || ^7.0

Since Mar 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/diegograssato/apigility-yaml-negotiation)[ Packagist](https://packagist.org/packages/diegograssato/apigility-yaml-negotiation)[ Docs](https://github.com/diegograssato/apigility-yaml-negotiation)[ RSS](/packages/diegograssato-apigility-yaml-negotiation/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

apigility-yaml-negotiation
==========================

[](#apigility-yaml-negotiation)

YamlNegotiation module for Apigility.

Response type is based on *Accept* header :

- request that specifies **text/yaml** (or **text/yml**) get the content in YAML
- **application/hal+json** (or **application/\*+json**) request get the content in HalJson as usual.

### Installation

[](#installation)

Install composer in your project

```
curl -s http://getcomposer.org/installer | php

```

Add dependency in composer.json.

```
composer require diegograssato/apigility-yaml-negotiation

```

### Usage

[](#usage)

- Add *ZF\\ContentNegotiation\\YAML* to application.config.php:

```
return [
    'modules' => [
        ...
        'ZF\\ContentNegotiation\\YAML',
        ....
    ]
]
```

- Go to admin, select your API and change *Content Negotiation Selector* to **HalJsonYAML**
- Add **text/yaml** to *Accept whitelist* and *Content-Type whitelist*. Add other headers if needed.
- Save configuration

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3400d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b396bcf6b27ea68c6ced40ddab79457c1d7b9d7932ed90d62f234ad2553d1a2?d=identicon)[diego.grassato](/maintainers/diego.grassato)

---

Top Contributors

[![grassato](https://avatars.githubusercontent.com/u/17568672?v=4)](https://github.com/grassato "grassato (2 commits)")

---

Tags

apiyamlymlzendnegotiationmodulecontent negotiationzf3apigility

### Embed Badge

![Health badge](/badges/diegograssato-apigility-yaml-negotiation/health.svg)

```
[![Health](https://phpackages.com/badges/diegograssato-apigility-yaml-negotiation/health.svg)](https://phpackages.com/packages/diegograssato-apigility-yaml-negotiation)
```

###  Alternatives

[dugajean/laravel-yaml

YAML parser for Laravel.

144.8k](/packages/dugajean-laravel-yaml)

PHPackages © 2026

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