mike27cubes/runscope-guzzle-plugin
最新稳定版本:0.1.0
Composer 安装命令:
composer require mike27cubes/runscope-guzzle-plugin
包简介
This package adds Runscope support to the Guzzle 5.x PHP library.
关键字:
README 文档
README
Guzzle 5.x plugin for Runscope
- Requires a free Runscope account, sign up here
- Automatically create Runscope URLs for your requests
- Automatically create proper
Runscope-Request-Portheader when using ports - Support for authenticated buckets and service regions (see example below)
Install by issuing:
~ composer require mike27cubes/runscope-guzzle-plugin
Usage is as follows:
<?php require __DIR__ . '/../vendor/autoload.php'; use GuzzleHttp\Client; use Runscope\Plugin\RunscopePlugin; $client = new Client(); $runscopePlugin = new RunscopePlugin('bucket_key'); // authenticated bucket // $runscopePlugin = new RunscopePlugin('bucket_key', 'authTokenHere'); // service region // $runscopePlugin = new RunscopePlugin('bucket_key', null, 'eu1.runscope.net'); $client->getEmitter()->attach($runscopePlugin); // Send the request and get the response $response = $client->get('https://api.github.com/');
Enjoy!
统计信息
- 总下载量: 1.02k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-12-30