承接 flying-narwhal/json-request-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

flying-narwhal/json-request-bundle

最新稳定版本:v3.1.2

Composer 安装命令:

composer require flying-narwhal/json-request-bundle

包简介

Symfony JsonRequest Bundle

README 文档

README

Latest Stable Version Total Downloads License

This package was recovered from local copy. It is not planned to maintain it.

Installation

  • Require the bundle with composer:
composer require flying-narwhal/json-request-bundle

From original readme:

SymfonyBundles JsonRequest Bundle

SensioLabsInsight

Build Status Scrutinizer Code Quality Code Coverage

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');
}

统计信息

  • 总下载量: 48.09k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-12-17