PHPackages                             zpetr/apigility-xmlnegotiation - 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. zpetr/apigility-xmlnegotiation

ActiveLibrary[API Development](/categories/api)

zpetr/apigility-xmlnegotiation
==============================

Apigility XML Negotiation module

1.1.1(6y ago)2842↓100%2BSDPHPPHP &gt;=5.3.23

Since Feb 12Pushed 3y ago2 watchersCompare

[ Source](https://github.com/zpetr/apigility-xmlnegotiation)[ Packagist](https://packagist.org/packages/zpetr/apigility-xmlnegotiation)[ Docs](https://github.com/zpetr/apigility-xmlnegotiation)[ RSS](/packages/zpetr-apigility-xmlnegotiation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

apigility-xmlnegotiation
========================

[](#apigility-xmlnegotiation)

XML negotiation module for Apigility

---

This module is inspired from \[abandoned ApigilityXml project\]\[source\]. Thank you to \[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": {
        "zpetr/apigility-xmlnegotiation" : "1.*"
    }
}
```

Finally install dependencies

```
php composer.phar install

```

or update it

```
php composer.phar update

```

### Usage

[](#usage)

- Add *zPetr\\ApigilityXml* to config/modules.config.php:

```
	return array(
    	...,
        'zPetr\ApigilityXml',
        ....
	)
```

- 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

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Every ~57 days

Total

3

Last Release

2528d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f33f8f73652e2ddb1fa9c7b7c3e2c61fc71088b99f79a5c5aff635442590dc80?d=identicon)[zpetr](/maintainers/zpetr)

---

Top Contributors

[![zpetr](https://avatars.githubusercontent.com/u/2429147?v=4)](https://github.com/zpetr "zpetr (7 commits)")[![pgl-az](https://avatars.githubusercontent.com/u/71706060?v=4)](https://github.com/pgl-az "pgl-az (4 commits)")[![Eliot-az](https://avatars.githubusercontent.com/u/107464519?v=4)](https://github.com/Eliot-az "Eliot-az (2 commits)")[![lampi87](https://avatars.githubusercontent.com/u/3034138?v=4)](https://github.com/lampi87 "lampi87 (1 commits)")

---

Tags

apixmlnegotiationmodulezf2apigility

### Embed Badge

![Health badge](/badges/zpetr-apigility-xmlnegotiation/health.svg)

```
[![Health](https://phpackages.com/badges/zpetr-apigility-xmlnegotiation/health.svg)](https://phpackages.com/packages/zpetr-apigility-xmlnegotiation)
```

###  Alternatives

[nathanmac/parser

Simple PHP Parser Utility Library for API Development

2151.0M3](/packages/nathanmac-parser)[evandotpro/edp-github

Github API integration module for Zend Framework 2

241.6k](/packages/evandotpro-edp-github)[nilportugues/api-problems

PSR7 Response implementation for the Problem Details for HTTP APIs

1749.4k2](/packages/nilportugues-api-problems)[narno/gandi-api

Simple PHP library for the Gandi API.

1622.3k](/packages/narno-gandi-api)

PHPackages © 2026

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