PHPackages                             nafresne/guzzle-ovh-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. nafresne/guzzle-ovh-plugin

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

nafresne/guzzle-ovh-plugin
==========================

Guzzle plugin to manage OVH authentication

1398PHP

Since Nov 6Pushed 11y ago1 watchersCompare

[ Source](https://github.com/nafresne/guzzle-ovh-plugin)[ Packagist](https://packagist.org/packages/nafresne/guzzle-ovh-plugin)[ RSS](/packages/nafresne-guzzle-ovh-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#Guzzle OVH Plugin

[![PHP version](https://camo.githubusercontent.com/5c3f678b3203dbca6ece6569d7348cc0c1cb0d47e0954d1e9c40be6902f57e29/68747470733a2f2f62616467652e667572792e696f2f70682f6e61667265736e6525324667757a7a6c652d6f76682d706c7567696e2e737667)](http://badge.fury.io/ph/nafresne%2Fguzzle-ovh-plugin)[![Build Status](https://camo.githubusercontent.com/2d73f7b177776ff50144b261ea9ac732b02022648a1ed3f134ffef7301d55e5c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e61667265736e652f67757a7a6c652d6f76682d706c7567696e2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nafresne/guzzle-ovh-plugin/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8a2a9415c1984ae997e33351f20dd93816cfcf248ccbba6e08de2c939f777f92/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e61667265736e652f67757a7a6c652d6f76682d706c7567696e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nafresne/guzzle-ovh-plugin/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/2e24e3b381914ded45a2720620e02cbf4c60ccb980f9b5969ed5ee64e4661535/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e61667265736e652f67757a7a6c652d6f76682d706c7567696e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nafresne/guzzle-ovh-plugin/?branch=master)

Guzzle 4 Plugin to use OVH API

More informations on OVH API:

\##Installation

\###Install via composer

```
# Install Composer
curl -sS https://getcomposer.org/installer | php

# Add the plugin as a dependency
php composer.phar require nafresne/guzzle-ovh-plugin:dev-master
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

\##Basic usage

```
require 'vendor/autoload.php';

use Nafresne\GuzzleHttp\OvhClient;
use Nafresne\GuzzleHttp\Subscriber\OvhSubscriber;

//Configuration
$config = array(
    'application_key'    => 'ApplicationKey',
    'application_secret' => 'ApplicationSecret',
    'consumer_key'       => 'ConsumerKey'
);

// Create a Guzzle client
$client new OvhClient(['base_url' => 'https://eu.api.ovh.com/1.0/, 'time_url' => 'auth/time');
// and add it the plugin
$client->getEmitter()->attach(new OvhSubscriber($config));

// Now the plugin will add the correct OVH headers to your guzzle request
$response = $client->get('/data')->send();
```

\##Symfony 2 usage

```
parameters:
    ovh.baseurl: "https://eu.api.ovh.com/1.0/"
    ovh.timeurl: "auth/time"
    ovh.config:
        application_key: ApplicationKey
        application_secret: ApplicationSecret
        consumer_key: ConsumerKey

services:
    guzzle.ovh.client:
        class: Nafresne\GuzzleHttp\OvhClient
        arguments:
            - { base_url: %ovh.baseurl%, time_url: %ovh.timeurl%, emitter: @guzzle.ovh.emitter }

    guzzle.ovh.emitter:
        class: GuzzleHttp\Event\Emitter
        calls:
            - [attach, [@guzzle.ovh.subscriber]]

    guzzle.ovh.subscriber:
        class: Nafresne\GuzzleHttp\Subscriber\OvhSubscriber
        arguments: [%ovh.config%]
```

```
$client = $this->container->get('guzzle.ovh.client');
$response = $client->get('hosting/web');
$body = $response->getBody();
```

\##Tests

```
composer install && vendor/bin/phpunit

```

\##License

This plugin is licensed under the MIT License

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/75e5863bfb68286bf458d81bfbe8d6a6d737b62d50c468462cf420dda2bb4683?d=identicon)[nafresne](/maintainers/nafresne)

---

Top Contributors

[![nafresne](https://avatars.githubusercontent.com/u/6064728?v=4)](https://github.com/nafresne "nafresne (7 commits)")

### Embed Badge

![Health badge](/badges/nafresne-guzzle-ovh-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/nafresne-guzzle-ovh-plugin/health.svg)](https://phpackages.com/packages/nafresne-guzzle-ovh-plugin)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
