Download the PHP package diegograssato/apigility-yaml-negotiation without Composer
On this page you can find all versions of the php package diegograssato/apigility-yaml-negotiation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download diegograssato/apigility-yaml-negotiation
More information about diegograssato/apigility-yaml-negotiation
Files in diegograssato/apigility-yaml-negotiation
Download diegograssato/apigility-yaml-negotiation
More information about diegograssato/apigility-yaml-negotiation
Files in diegograssato/apigility-yaml-negotiation
Vendor diegograssato
Package apigility-yaml-negotiation
Short Description Apigility Module providing YAML/YML/TXT content-negotiation features
License MIT
Homepage https://github.com/diegograssato/apigility-yaml-negotiation
Package apigility-yaml-negotiation
Short Description Apigility Module providing YAML/YML/TXT content-negotiation features
License MIT
Homepage https://github.com/diegograssato/apigility-yaml-negotiation
Please rate this library. Is it a good library?
Informations about the package 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
Install composer in your project
curl -s http://getcomposer.org/installer | php
Add dependency in composer.json.
composer require diegograssato/apigility-yaml-negotiation
Usage
-
Add ZF\ContentNegotiation\YAML to application.config.php:
- 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
All versions of apigility-yaml-negotiation with dependencies
PHP Build Version
Package Version
Requires
php Version
^5.6 || ^7.0
zfcampus/zf-apigility Version ^1.3
zfcampus/zf-content-negotiation Version ^1.2
zendframework/zend-stdlib Version ^2.7.7 || ^3.0.1
zendframework/zend-serializer Version ^2.7.7 || ^3.0.1
zendframework/zend-component-installer Version ^1.0 || ^0.5 || ^1.0.0-dev@dev
zfcampus/zf-apigility Version ^1.3
zfcampus/zf-content-negotiation Version ^1.2
zendframework/zend-stdlib Version ^2.7.7 || ^3.0.1
zendframework/zend-serializer Version ^2.7.7 || ^3.0.1
zendframework/zend-component-installer Version ^1.0 || ^0.5 || ^1.0.0-dev@dev
The package diegograssato/apigility-yaml-negotiation contains the following files
Loading the files please wait ....