2017 © Pedro Peláez
 

library runscope-guzzle-plugin

This package adds Runscope support to the Guzzle 5.x PHP library.

image

mike27cubes/runscope-guzzle-plugin

This package adds Runscope support to the Guzzle 5.x PHP library.

  • Monday, March 2, 2015
  • by mike27cubes
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1,013 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Guzzle 5.x plugin for Runscope, (*1)

  • Requires a free Runscope account, sign up here
  • Automatically create Runscope URLs for your requests
  • Automatically create proper Runscope-Request-Port header when using ports
  • Support for authenticated buckets and service regions (see example below)

Install by issuing:, (*2)

    ~ composer require mike27cubes/runscope-guzzle-plugin

Usage is as follows:, (*3)

<?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!, (*4)

The Versions

02/03 2015

dev-master

9999999-dev https://github.com/mike27cubes/guzzle-runscope

This package adds Runscope support to the Guzzle 5.x PHP library.

  Sources   Download

MIT

The Requires

 

The Development Requires

guzzle runscope

02/03 2015

0.1.0

0.1.0.0 https://github.com/mike27cubes/guzzle-runscope

This package adds Runscope support to the Guzzle 5.x PHP library.

  Sources   Download

MIT

The Requires

 

The Development Requires

guzzle runscope