PHPackages                             glibe/storageconnect-ovh - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. glibe/storageconnect-ovh

ActiveLibrary[File &amp; Storage](/categories/file-storage)

glibe/storageconnect-ovh
========================

Librairie pour interagir avec un object storage. Utilise l'api swift avec authentification v2 pour fonctionner avec OVH

v2.0.2(5y ago)01.2kMITPHPPHP &gt;=7.0

Since Jun 13Pushed 5y agoCompare

[ Source](https://github.com/tpin85/ObjectStorageOvh-Connect)[ Packagist](https://packagist.org/packages/glibe/storageconnect-ovh)[ RSS](/packages/glibe-storageconnect-ovh/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (21)Used By (0)

Connecteur PHP - Object Storage OVH
===================================

[](#connecteur-php---object-storage-ovh)

Install
-------

[](#install)

```
composer require glibe/storageconnect-ovh
```

### Utilisation

[](#utilisation)

Les éléments de connexion à openstack sont obligatoires. Les élèments de connexion à l'API d'OVH sont optionnels. Ils sont utilisés uniquement dans le cas d'une création de container.

La création des credentials pour utiliser l'api d'ovh se fait à cette url : [https://api.ovh.com/createToken/index.cgi?GET=/*&amp;PUT=/*&amp;POST=/*&amp;DELETE=/*](https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)

La librairie utilise l'authentification v3 d'openstack.

```
$credentials = [
    'authUrl'         => "https://auth.cloud.ovh.net/v3",
    'region'          => "GRA",
    'username'        => "your-username",
    'password'        => "your-password",
    'tenantName'      => "your-tenant-name",
];

$ovhCredentials = [
    'application_key' => "XXXXXXXX",
    'application_secret' => "XXXXXXXX",
    'api_endpoint' => "XXXXXXXX", // ovh-eu for europe
    'consumer_key' => "XXXXXXXX"
];

$obj = new Glibe\StorageConnetOvh($credentials,$ovhCredentials);
```

### Récupération infos d'une ressource

[](#récupération-infos-dune-ressource)

```
$obj->getObject('','');
```

### Création d'une ressource

[](#création-dune-ressource)

```
$obj->createObject('','','',');
```

###### Exemple

[](#exemple)

Pour créer un fichier qui aura pour référence /img/png/hello.png dans le container "cdn", la commande de création sera la suivante :

```
$obj->createObject('cdn','hello.png','','img/png');
```

### Création d'une container

[](#création-dune-container)

\####### Statut possible : public / private

En public cela fait container un hébergement statique. Les ressources seront alors accessiblent par une url publique. (Voir site ovh pour plus d'explication.) Par défaut le statut est à private.

\####### Ovh project ID L'identifiant unique de votre projet public cloud chez OVH. Disponible sous le nom de votre proejt dans votre interface client. Si non définit, le premier projet disponible sera utilisé.

```
$obj->createContainer('',' (default: private)',' (default: first available)');
```

###### Exemple

[](#exemple-1)

```
$obj->createContainer('testContainer','public','90b0b09604e74e4e8ade65xxxxxxxxx');
```

### Accès à un container

[](#accès-à-un-container)

Renvoie une instance du container souhaité

```
$obj->getContainer('');
```

### Supprimer un objet

[](#supprimer-un-objet)

```
$obj->deleteObject('','');
```

###### Exemple

[](#exemple-2)

Pour supprimer le fichier /img/png/hello.png dans le container "cdn", la commande de suppression sera la suivante :

```
$obj->deleteObject('cdn','/img/png/hello.png');
```

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~51 days

Total

20

Last Release

1916d ago

Major Versions

v1.1.1 → v2.0.02020-11-16

PHP version history (2 changes)v1.0.0PHP ~7.0

v2.0.2PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ac37a113eb4aff31d1cac6c37c74e05cede6436d9963fbfc3fb4f8db7cef75d0?d=identicon)[tpin85](/maintainers/tpin85)

---

Top Contributors

[![tpin85](https://avatars.githubusercontent.com/u/26658599?v=4)](https://github.com/tpin85 "tpin85 (29 commits)")

---

Tags

Openstackovhswiftobject-storage

### Embed Badge

![Health badge](/badges/glibe-storageconnect-ovh/health.svg)

```
[![Health](https://phpackages.com/badges/glibe-storageconnect-ovh/health.svg)](https://phpackages.com/packages/glibe-storageconnect-ovh)
```

###  Alternatives

[sausin/laravel-ovh

OVH Object Storage driver for laravel

40153.5k](/packages/sausin-laravel-ovh)[nimbusoft/flysystem-openstack-swift

Flysystem adapter for OpenStack Swift

44774.4k6](/packages/nimbusoft-flysystem-openstack-swift)[rackspace/php-opencloud

PHP SDK for Rackspace/OpenStack APIs

4495.9M38](/packages/rackspace-php-opencloud)[ivopetkov/object-storage

A better way to work with files

159.5k1](/packages/ivopetkov-object-storage)

PHPackages © 2026

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