2017 © Pedro Peláez
 

library zf-guzzle-emitter

A Zend Framework module adding subscribers to guzzle emitter via configuration.

image

reinfi/zf-guzzle-emitter

A Zend Framework module adding subscribers to guzzle emitter via configuration.

  • Tuesday, August 29, 2017
  • by reinfi
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Build Status Code Climate Coverage Status, (*1)

Configure guzzle emitter subscriber via configuration., (*2)

  1. Installation
  2. Usage

Installation

  1. Install with Composer: composer require reinfi/zf-guzzle-emitter.
  2. Enable the module via ZF2 config in appliation.config.php under modules key:
    return [
        'modules' => [
            'Reinfi\GuzzleEmitter',
            // other modules
        ],
    ];

Usage

To use it you need to register your subscriber under the following config key., (*3)

'guzzle_emitter' => [
    'subscriber' => [
        YourSubscriber::class,
    ],
]

All your subscribers must be registered within the service locator., (*4)

When you need to get a new guzzle client you just pass the following options, (*5)

$options = [
    'emitter' => $container->get(\Reinfi\GuzzleEmitter\Emitter::class);,
    '...'     => '',
];

$client = new Client($options);

For information how to write subscriber see http://docs.guzzlephp.org/en/5.3/events.html#event-subscribers, (*6)

FAQ

Feel free to ask any questions or open own pull requests., (*7)

The Versions

29/08 2017

dev-master

9999999-dev

A Zend Framework module adding subscribers to guzzle emitter via configuration.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar reinfi

zend subscriber emitter guzzle

29/08 2017

1.0.0

1.0.0.0

A Zend Framework module adding subscribers to guzzle emitter via configuration.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar reinfi

zend subscriber emitter guzzle