Download the PHP package zpetr/apigility-xmlnegotiation without Composer
On this page you can find all versions of the php package zpetr/apigility-xmlnegotiation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zpetr/apigility-xmlnegotiation
More information about zpetr/apigility-xmlnegotiation
Files in zpetr/apigility-xmlnegotiation
Download zpetr/apigility-xmlnegotiation
More information about zpetr/apigility-xmlnegotiation
Files in zpetr/apigility-xmlnegotiation
Vendor zpetr
Package apigility-xmlnegotiation
Short Description Apigility XML Negotiation module
License BSD
Homepage https://github.com/zpetr/apigility-xmlnegotiation
Package apigility-xmlnegotiation
Short Description Apigility XML Negotiation module
License BSD
Homepage https://github.com/zpetr/apigility-xmlnegotiation
Please rate this library. Is it a good library?
Informations about the package apigility-xmlnegotiation
apigility-xmlnegotiation
XML negotiation module for Apigility
This module is inspired from abandoned ApigilityXml project. Thank you to Markus!
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
Install composer in your project
curl -s http://getcomposer.org/installer | php
Define dependencies in your composer.json file
Finally install dependencies
php composer.phar install
or update it
php composer.phar update
Usage
-
Add zPetr\ApigilityXml to config/modules.config.php:
- 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
All versions of apigility-xmlnegotiation with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.23
zfcampus/zf-apigility Version ^1.4
zendframework/zend-serializer Version ^2.9
zfcampus/zf-apigility Version ^1.4
zendframework/zend-serializer Version ^2.9
The package zpetr/apigility-xmlnegotiation contains the following files
Loading the files please wait ....