2017 © Pedro PelĂĄez
 

symfony-bundle json-request-bundle

Symfony JsonRequest Bundle

image

symfony-bundles/json-request-bundle

Symfony JsonRequest Bundle

  • Saturday, March 24, 2018
  • by khaperets
  • Repository
  • 7 Watchers
  • 35 Stars
  • 5,184 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 10 Versions
  • 63 % Grown

The README.md

Symfony JsonRequest Bundle

[Scrutinizer Code Quality][scrutinizer-code-quality-link] [Code Coverage][code-coverage-link] Total Downloads Latest Stable Version License, (*1)

Installation

  • Require the bundle with composer:

``` bash composer req symfony-bundles/json-request-bundle, (*2)


What is JsonRequest Bundle? --------------------------- This bundle will help you to work with json requests as standard requests without using «crutches». If previously for fetching of data from the request you did like this: `$data = json_decode($request->getContent())`, it is now in this already there is no need to. For example when sending json-request from AngularJS, Vue.js or etc. Early: ``` php public function indexAction(Request $request) { $data = json_decode($request->getContent(), true); // uses request data $name = isset($data['name']) ? $data['name'] : null; }

Now you can work with json-request as with standard request:, (*3)

``` php public function indexAction(Request $request) { $name = $request->get('name'); }, (*4)


Per default request content will be transformed only for requests with content type `json` or `jsonld`. but you can stil configure it with ``` yaml # serices.yaml json_request: content_types: - json - jsonld - someouthertype

The Versions

24/03 2018
17/10 2017

1.2.x-dev

1.2.9999999.9999999-dev https://github.com/symfony-bundles/json-request-bundle

Symfony JsonRequest Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dmitry Khaperets

json bundle symfony angular

23/04 2017

v1.2.0

1.2.0.0 https://github.com/symfony-bundles/json-request-bundle

Symfony JsonRequest Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dmitry Khaperets

json bundle symfony angular

12/02 2017

v1.1.1

1.1.1.0 https://github.com/symfony-bundles/json-request-bundle

Symfony JsonRequest Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dmitry Khaperets

json bundle symfony angular

12/01 2017

v1.1.0

1.1.0.0 https://github.com/symfony-bundles/json-request-bundle

Symfony JsonRequest Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dmitry Khaperets

json bundle symfony angular

16/12 2016

v1.0.1

1.0.1.0 https://github.com/symfony-bundles/json-request-bundle

Symfony JsonRequest Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dmitry Khaperets

json bundle symfony angular

15/12 2016

v1.0.0

1.0.0.0 https://github.com/symfony-bundles/json-request-bundle

Symfony JsonRequest Bundle

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dmitry Khaperets

json bundle symfony angular