PHPackages                             diegograssato/apigility-xml-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-xml-negotiation

ActiveLibrary[API Development](/categories/api)

diegograssato/apigility-xml-negotiation
=======================================

Apigility Module providing XML content-negotiation features

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

Since Mar 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/diegograssato/apigility-xml-negotiation)[ Packagist](https://packagist.org/packages/diegograssato/apigility-xml-negotiation)[ Docs](https://github.com/diegograssato/apigility-xm-lnegotiation)[ RSS](/packages/diegograssato-apigility-xml-negotiation/feed)WikiDiscussions master Synced 2mo ago

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

apigility-xml-negotiation
=========================

[](#apigility-xml-negotiation)

Apigility Module providing XML content-negotiation features

---

This module is inspired from \[abandoned ApigilityXml project\]\[source\] for \[Markus\]\[source\_dev\]! \[source\]: \[source\_dev\]:

---

Necessary infrastructure to handle XML with ZF Apigility with HAL structure.

Response type is based on *Accept* header :

- request that specifies **application/xml** (or **application/\*+xml**) get the content in XML
- **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

```

Define dependencies in your composer.json file

```
{
    "require": {
        "diegograssato/apigility-xml-negotiation" : "dev-master"
    }
}
```

Finally install dependencies

```
php composer.phar install

```

or update it

```
php composer.phar update

```

### Usage

[](#usage)

- Add *ZF\\ContentNegotiation\\XML* to modules.config.php:

```
	return array(
    	...,
        'ZF\ContentNegotiation\XML',
        ....
	)
```

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

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

3348d 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 (3 commits)")

---

Tags

apixmlzendnegotiationmodulecontent negotiationzf3apigility

### Embed Badge

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

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

###  Alternatives

[nathanmac/parser

Simple PHP Parser Utility Library for API Development

2151.0M3](/packages/nathanmac-parser)

PHPackages © 2026

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