free2er / json-negotiator-bundle
JSON Negotiator Bundle
1.0.1
2019-11-28 19:14 UTC
Requires
- php: ^7.2
- ext-json: *
- symfony/config: ^5.0
- symfony/dependency-injection: ^5.0
- symfony/http-kernel: ^5.0
Requires (Dev)
- free2er/coding-standard: ^1.1
- phpunit/phpunit: ^8.3
This package is auto-updated.
Last update: 2024-10-29 05:23:12 UTC
README
JSON Negotiator Bundle
Installation
This component can be installed with the Composer dependency manager.
-
Install the component as a dependency of your project
composer require free2er/json-negotiator-bundle
-
Enable the bundle
<?php // config/bundles.php return [ // ... Free2er\Json\JsonNegotiatorBundle::class => ['all' => true], // ... ];
- Configure negotiation options
# config/packages/json_negotiator.yaml json_negotiator: content_types: - json - jsonld methods: - POST - PATCH - PUT
- Done!