承接 estahn/guzzle-stereo-bundle 相关项目开发

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

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

estahn/guzzle-stereo-bundle

Composer 安装命令:

composer require estahn/guzzle-stereo-bundle

包简介

Record and Replay HTTP Responses easily in Symfony

README 文档

README

Latest Stable Version Total Downloads Dependency Status SensioLabsInsight Build Status StyleCI

The GuzzleStereoBundle provides integration of the guzzle-stereo library into the Symfony2 framework.

Features include:

  • Automatic recording of all outgoing requests through Guzzle
  • Replay recorded requests in functional tests
  • Copy & paste of file with last recorded requests

GuzzleStereoBundle automatically hooks guzzle-stereo into Guzzle which then records all requests made through Guzzle. The goal is to reduce the effort to create mocks for external requests.

Installation

  1. Download the Bundle

    Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

    $ composer require estahn/guzzle-stereo-bundle --dev

    This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

  2. Enable the Bundle

    Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:

    <?php
    // app/AppKernel.php
     
    // ...
    class AppKernel extends Kernel
    {
        public function registerBundles()
        {
            $bundles = array(
                // ...
    
                new EnricoStahn\Bundle\GuzzleStereoBundle\GuzzleStereoBundle(),
            );
    
            // ...
        }
     
        // ...
    }
  3. Enable the service by adding the following empty configuration:

    # app/config/config_test.yml
    guzzle_stereo: ~

Usage

Refresh your page and find the created file in app/logs/record_<tape name>.json.

Badge Mania

Build Status Scrutinizer Code Quality Code Coverage Codacy Badge

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-03-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固