PHPackages                             mrcoco/ceph-uny - 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. mrcoco/ceph-uny

ActiveLibrary

mrcoco/ceph-uny
===============

Provides a CephClient for storing files UNY cloud object storage.

06PHP

Since Sep 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/mrcoco/ceph-uny)[ Packagist](https://packagist.org/packages/mrcoco/ceph-uny)[ RSS](/packages/mrcoco-ceph-uny/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

ceph-uny
========

[](#ceph-uny)

Provides a CephClient for storing files UNY cloud object storage

install via composer
--------------------

[](#install-via-composer)

```
composer require mrcoco/ceph-uny dev-master
```

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

use CephUny\Client;
$config = array(
    'version' => 'latest',
    'region'  => '',
    'endpoint' => 'AWS_HOST',
    'credentials' => array(
        'key' => 'AWS_KEY',
        'secret' => 'AWS_SECRET_KEY',
    )
);
$client = new Client($config);
$bucketName = 'my-bucket';
```

### create bucket;

[](#create-bucket)

```
$client->createBucket($bucketName);
```

### Dump all existing buckets.

[](#dump-all-existing-buckets)

```
foreach ($client->getBuckets() as $bucket) {
 var_dump($bucket);
}
```

### put direct file

[](#put-direct-file)

```
$file = "uny.png";
try{
    $client->putFromFile($bucketName,$file);
}catch (Aws\S3\Exception\S3Exception $e){
    echo "There was an error uploading the file.\n";
}
```

### put direct file return URL

[](#put-direct-file-return-url)

```
$file = "uny.png";
try{
    $result = $client->putFromFile($bucketName,$file);
    echo $result['ObjectURL'].PHP_EOL;

}catch (Aws\S3\Exception\S3Exception $e){
    echo "There was an error uploading the file.\n";
}
```

### Get file from bucket

[](#get-file-from-bucket)

```
$fileName = basename($file);
$result = $client->getFile($bucketName, $fileName);
var_dump($result);
```

### get preSign URL expired

[](#get-presign-url-expired)

```
$bucketName = "mybocket";
$file = "uny.png";
$fileName = basename($file);
$expired = "+30 minutes";
$url = $client->preSignUrl($bucketName, $fileName,$expired);
echo $url;
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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/614d5c35a8cd2aef93764a161643e3952389785c7eaca5bc17a3deb291061217?d=identicon)[mrcoco](/maintainers/mrcoco)

---

Top Contributors

[![mrcoco](https://avatars.githubusercontent.com/u/377529?v=4)](https://github.com/mrcoco "mrcoco (18 commits)")

### Embed Badge

![Health badge](/badges/mrcoco-ceph-uny/health.svg)

```
[![Health](https://phpackages.com/badges/mrcoco-ceph-uny/health.svg)](https://phpackages.com/packages/mrcoco-ceph-uny)
```

PHPackages © 2026

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