Download the PHP package samuel4x4/chefauth-guzzle-plugin without Composer
On this page you can find all versions of the php package samuel4x4/chefauth-guzzle-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download samuel4x4/chefauth-guzzle-plugin
More information about samuel4x4/chefauth-guzzle-plugin
Files in samuel4x4/chefauth-guzzle-plugin
Download samuel4x4/chefauth-guzzle-plugin
More information about samuel4x4/chefauth-guzzle-plugin
Files in samuel4x4/chefauth-guzzle-plugin
Vendor samuel4x4
Package chefauth-guzzle-plugin
Short Description A guzzle (v3) plugin handling all authentication for Chef server API.
License MIT
Homepage http://www.leaseweblabs.com
Package chefauth-guzzle-plugin
Short Description A guzzle (v3) plugin handling all authentication for Chef server API.
License MIT
Homepage http://www.leaseweblabs.com
Please rate this library. Is it a good library?
Informations about the package chefauth-guzzle-plugin
leaseweb/chefauth-guzzle-plugin
A guzzle (v3) plugin handling all authentication for Chef server API.
requirements
- PHP 5.3
- Guzzle 3
installation
First you need Guzzle, offcourse.
Add the leaseweb/chefauth-guzzle-plugin as a dependency to your project:
$ php composer.phar require "leaseweb/chefauth-guzzle-plugin":"1.0.0"
Composer will install the plugin to your project's vendor/leaseweb directory.
You are now ready to use the plugin.
usage
Create a new guzzle client pointing to your chef server:
// Supply your client name and location of the private key.
$chefAuthPlugin = new \LeaseWeb\ChefGuzzle\Plugin\ChefAuth\ChefAuthPlugin("client-name", "/tmp/client-name.pem");
// Create a new guzzle client
$client = new \Guzzle\Http\Client('https://manage.opscode.com');
$client->addSubscriber($chefAuthPlugin);
// Now you can make calls to the chef server
$response = $client->get('/organizations/my-organization/nodes')->send();
$nodes = $response->json();
Read more about guzzle here http://guzzle3.readthedocs.org/docs.html
license
MIT
All versions of chefauth-guzzle-plugin with dependencies
PHP Build Version
Package Version
The package samuel4x4/chefauth-guzzle-plugin contains the following files
Loading the files please wait ...