PHPackages                             octivi/php-cephclient - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. octivi/php-cephclient

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

octivi/php-cephclient
=====================

PHP library to communicate with Ceph's REST API

14613PHP

Since Aug 7Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Octivi - CephClient
===================

[](#octivi---cephclient)

php-cephclient is a PHP library to communicate with [Ceph's REST API](http://ceph.com/docs/master/man/8/ceph-rest-api/).

This is currently a work in progress.

ABOUT
=====

[](#about)

CurlClient
----------

[](#curlclient)

The CurlClient class takes care of sending calls to the API through HTTP and handle the responses. It supports queries for JSON, XML, plain text or binary.

CephClient
----------

[](#cephclient)

The CephClient class provides helper functions to communicate with the API. The CallWrapper uses the CephClient.

Nothing prevents you from calling the client directly.

Development, Feedback, Bugs
---------------------------

[](#development-feedback-bugs)

Contributors:

- [Rafał Lorenz](https://github.com/vardius)
- [Antoni Orfin](https://github.com/orfin)

Thanks to [David Moreau Simard](mailto:moi@dmsimard.com), who is an author of [python-cephclient](https://github.com/dmsimard/python-cephclient), which was our inspiration on creating php-cephclient library.

Want to contribute ? Feel free to send pull requests!

Have problems, bugs, feature ideas? We are using the github [issue tracker](https://github.com/octivi/php-cephclient/issues) to manage them.

HOW TO USE
==========

[](#how-to-use)

Installation
------------

[](#installation)

Install the package through composer::

```
php composer.phar require octivi/php-cephclient:*

```

Usage
-----

[](#usage)

Instanciate CephClient:

```
use Octivi\CephClient\Client\CephClient;

$url = 'http://10.20.51.201:5000/api/v0.1/';
$cephClient = new CephClient($url);

```

Optional with authentication:

```
use Octivi\CephClient\Client\CephClient;

$url = 'http://10.20.51.201:5000/api/v0.1/';
$cephClient = new CephClient($url);
$cephClient->useAuth('name', 'password');

```

Do your request.

```
$response = $cephClient->getRoot()->fsId();

```

Response example:

```
object(stdClass)[91]
  public 'status' => string 'OK' (length=2)
  public 'output' =>
    object(stdClass)[109]
      public 'fsid' => string '60d98352-115b-4ca1-a51b-414d98492168' (length=36)

```

You can set your CephClient to return json respons by setting debug parametr as `true`

```
new CephClient($url, true);

```

Response example:

```
{
    "status": "OK",
    "output": {
        "fsid": "d5252e7d-75bc-4083-85ed-fe51fa83f62b"
    }
}

```

Optional possibility: After geting your response you can draw info about the call:

```
$cephClient->root->fsId();
$cephClient->getInfo();

```

Info example:

```
array (size=26)
    'url' => string 'http://10.20.51.201:5000/api/v0.1/fsid' (length=38)
    'content_type' => string 'application/json' (length=16)
    'http_code' => int 200
    'header_size' => int 145
    'request_size' => int 148
    'filetime' => int -1
    'ssl_verify_result' => int 0
    'redirect_count' => int 0
    'total_time' => float 0.015
    'namelookup_time' => float 0
    'connect_time' => float 0
    'pretransfer_time' => float 0
    'size_upload' => float 0
    'size_download' => float 76
    'speed_download' => float 5066
    'speed_upload' => float 0
    'download_content_length' => float 76
    'upload_content_length' => float 0
    'starttransfer_time' => float 0.015
    'redirect_time' => float 0
    'certinfo' =>
      array (size=0)
        empty
    'primary_ip' => string '10.20.51.201' (length=12)
    'primary_port' => int 5000
    'local_ip' => string '10.20.52.231' (length=12)
    'local_port' => int 52062
    'redirect_url' => string '' (length=0)

```

Read more: [cephClient calls group and functions](docs/more_calls_group.md)

RELEASE NOTES
=============

[](#release-notes)

**0.1.0**

- First public release of php-cephclient

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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/9fb9911f00cf55169c1adc4489afcd758a405174dc796163becac4a6860d69df?d=identicon)[orfin](/maintainers/orfin)

---

Tags

cephphp

### Embed Badge

![Health badge](/badges/octivi-php-cephclient/health.svg)

```
[![Health](https://phpackages.com/badges/octivi-php-cephclient/health.svg)](https://phpackages.com/packages/octivi-php-cephclient)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M81](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M85](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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