2017 © Pedro Peláez
 

library chefauth-guzzle-plugin

A guzzle plugin handling all authentication for Chef server API.

image

leaseweb/chefauth-guzzle-plugin

A guzzle plugin handling all authentication for Chef server API.

  • Friday, June 8, 2018
  • by nrocco
  • Repository
  • 4 Watchers
  • 2 Stars
  • 982 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 5 Versions
  • 7 % Grown

The README.md

leaseweb/chefauth-guzzle-plugin

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

requirements

  • PHP 7.0
  • Guzzle 7

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":"2.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)

<?php
require_once 'vendor/autoload.php';

use GuzzleHttp\Client;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Handler\CurlHandler;
use LeaseWeb\ChefGuzzle\Middleware\ChefAuthMiddleware;

$handler = new CurlHandler();

$stack = HandlerStack::create($handler);
$stack->push(new ChefAuthMiddleware('janedoe', 'path/to/key.pem'));

$client = new Client([
    'base_uri' => 'https://my.chef.server.com/organizations/acme',
    'handler' => $stack
]);

$environments = $client->get("/environments");

Read more about guzzle here http://docs.guzzlephp.org/en/stable/index.html, (*7)

license

MIT, (*8)

The Versions

08/06 2018

dev-master

9999999-dev http://www.leaseweblabs.com

A guzzle plugin handling all authentication for Chef server API.

  Sources   Download

MIT

The Requires

 

by Nico Di Rocco

http guzzle chef

08/06 2018

2.0.0

2.0.0.0 http://www.leaseweblabs.com

A guzzle plugin handling all authentication for Chef server API.

  Sources   Download

MIT

The Requires

 

by Nico Di Rocco

http guzzle chef

02/06 2018

dev-refactor-guzzle6

dev-refactor-guzzle6 http://www.leaseweblabs.com

A guzzle 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