2017 © Pedro Peláez
 

symfony-bundle chefauth-guzzle-plugin

A guzzle (v3) plugin handling all authentication for Chef server API.

image

samuel4x4/chefauth-guzzle-plugin

A guzzle (v3) plugin handling all authentication for Chef server API.

  • Monday, August 22, 2016
  • by samuel4x4
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

leaseweb/chefauth-guzzle-plugin

A guzzle (v3) plugin handling all authentication for Chef server API., (*1)

requirements

  • PHP 5.3
  • Guzzle 3

installation

First you need Guzzle, offcourse., (*2)

Add the leaseweb/chefauth-guzzle-plugin as a dependency to your project:, (*3)

$ php composer.phar require "leaseweb/chefauth-guzzle-plugin":"1.0.0"

Composer will install the plugin to your project's vendor/leaseweb directory., (*4)

You are now ready to use the plugin., (*5)

usage

Create a new guzzle client pointing to your chef server:, (*6)

// 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, (*7)

license

MIT, (*8)

The Versions

22/08 2016

dev-master

9999999-dev https://github.com/samuel4x4/chefauth-guzzle-plugin

A guzzle (v3) plugin handling all authentication for Chef server API.

  Sources   Download

MIT

The Requires

 

by Nico Di Rocco

http guzzle chef

24/03 2015

1.0.1

1.0.1.0 http://www.leaseweblabs.com

A guzzle (v3) plugin handling all authentication for Chef server API.

  Sources   Download

MIT

The Requires

 

by Nico Di Rocco

http guzzle chef

23/03 2015

1.0.0

1.0.0.0 http://www.leaseweblabs.com

A guzzle (v3) plugin handling all authentication for Chef server API.

  Sources   Download

MIT

The Requires

 

by Nico Di Rocco

http guzzle chef