2017 © Pedro PelĂĄez
 

library silex-guzzlehttp-provider

Guzzle http service provider for Silex

image

rebangm/silex-guzzlehttp-provider

Guzzle http service provider for Silex

  • Friday, October 28, 2016
  • by rebangm
  • Repository
  • 3 Watchers
  • 10 Stars
  • 23,380 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 7 Versions
  • 8 % Grown

The README.md

Silex-Guzzle

Latest Stable Version Build Status codecov.io, (*1)

Installation

Create a composer.json in your projects root-directory::, (*2)

{
    "require": {
        "rebangm/silex-guzzlehttp-provider": "*"
    }
}

and run::, (*3)

curl -s http://getcomposer.org/installer | php
php composer.phar install

Getting started

Supposing that the skeleton of your application is ready, you simply need to register this service provider by specifying the parameters and options needed to access Guzzle:, (*4)

This will register one instance of Guzzle\Client accessible from anywhere in your application by using $app['guzzle']. all parameters are optional and they accept the same values accepted by the constructor of Guzzle\Client (see the documentation of Guzzle)., (*5)

    $app->register(new SilexGuzzle\GuzzleServiceProvider(),array(
        'guzzle.base_uri' => "http://httpbin.com/",
        'guzzle.timeout' => 3.14,
        'guzzle.request_options' =>
            ['auth' => ['admin', 'admin']]
    ));

You can find more details on how to use this provider in the examples directory or the test suite., (*6)

Reporting bugs and contributing code, (*7)

Contributions are highly appreciated either in the form of pull requests for new features, bug fixes or just bug reports. We only ask you to adhere to a basic basic set of rules before submitting your changes or filing bugs on the issue tracker to make it easier for everyone to stay consistent while working on the project., (*8)

Author

License

'silex-guzzlehttp-provider' is licensed under the MIT license. GitHub license, (*9)

The Versions

28/10 2016

dev-master

9999999-dev https://github.com/rebangm/silex-Guzzlehttp-provider

Guzzle http service provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

silex provider guzzlehttp

28/10 2016

v2.0.0

2.0.0.0 https://github.com/rebangm/silex-Guzzlehttp-provider

Guzzle http service provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

silex provider guzzlehttp

28/10 2016

1.3.x-dev

1.3.9999999.9999999-dev https://github.com/rebangm/silex-Guzzlehttp-provider

Guzzle http service provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

silex provider guzzlehttp

28/10 2016

v1.3.1

1.3.1.0 https://github.com/rebangm/silex-Guzzlehttp-provider

Guzzle http service provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

silex provider guzzlehttp

08/06 2016

v1.3.0

1.3.0.0 https://github.com/rebangm/silex-Guzzlehttp-provider

Guzzle http service provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

silex provider guzzlehttp

01/08 2015

v1.2.0

1.2.0.0 https://github.com/rebangm/silex-Guzzlehttp-provider

Guzzle http service provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

silex provider guzzlehttp

28/07 2015

v1.1.1

1.1.1.0 https://github.com/rebangm/silex-Guzzlehttp-provider

Guzzle http service provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

silex provider guzzlehttp