GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - InternationalCodeCouncil/json-request-bundle: Copy of symfony-bundles/json-request-bundle

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
DependencyInjection
DependencyInjection
 
 
EventListener
EventListener
 
 
Tests
Tests
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SymfonyBundlesJsonRequestBundle.php
SymfonyBundlesJsonRequestBundle.php
 
 
composer.json
composer.json
 
 
phpunit.xml.dist
phpunit.xml.dist
 
 

Repository files navigation

SymfonyBundles JsonRequest Bundle

SensioLabsInsight

Build Status Scrutinizer Code Quality Code Coverage Total Downloads Latest Stable Version License

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:

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:

public function indexAction(Request $request)
{
    $name = $request->get('name');
}

Installation

  • Require the bundle with composer:
composer require symfony-bundles/json-request-bundle

About

Copy of symfony-bundles/json-request-bundle

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

6 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.