PHPackages                             ph-ash/client-php - 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. ph-ash/client-php

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

ph-ash/client-php
=================

Client library for pushing data to a Phash instance

v1.1.1(6y ago)011MITPHPPHP &gt;=7.1.0

Since Jan 24Pushed 6y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

client-php
==========

[](#client-php)

Client library for pushing data to a Phash instance

It is designed to use either a PSR-7/PSR-17/PSR-18 compatible library or Guzzle.

Configuration
=============

[](#configuration)

Symfony
-------

[](#symfony)

Add a service definition with the configuration to your application.

- PSR version:

```
    _defaults:
        autowire: true

    Phash\Client:
        class: Phash\ClientPSR
        arguments:
            $baseUri: "http://localhost"
            $apiToken: "someToken"
```

- Guzzle version:

```
    _defaults:
        autowire: true

    GuzzleHttp\Client:
        class: GuzzleHttp\Client
        arguments:
            $config:
                base_uri: "http://localhost"

    Phash\Client:
        class: Phash\ClientGuzzle
        arguments:
            $apiToken: "someToken"
```

Plain PHP
---------

[](#plain-php)

Instantiate the client class and pass the configuration as parameters:

- PSR version:

```
    $requestFactory = ...; // instanceof Psr\Http\Message\RequestFactoryInterface
    $uriFactory = ...; // instanceof Psr\Http\Message\UriFactoryInterface
    $streamFactory = ...; // instanceof Psr\Http\Message\StreamFactoryInterface
    $client = ...; // instanceof Psr\Http\Client\ClientInterface
    $client = new Phash\ClientPSR('http://localhost', 'someToken', $requestFactory, $uriFactory, $streamFactory, $client);
```

- Guzzle version:

```
    $guzzleClient = new GuzzleHttp\Client(['base_uri' => 'http://localhost']);
    $client = new Phash\ClientGuzzle('someToken', $guzzleClient);
```

Usage
=====

[](#usage)

- Create a DTO (see [the payload documentation](https://github.com/ph-ash/documentation#payload-format)):

```
    $data = new Phash\MonitoringData(
        'monitoring id',
        Phash\MonitoringData::STATUS_OK,
        'this detail message will be displayed if a tile is clicked by a user',
        60,
        1,
        new \DateTimeImmutable(),
        'path.for.tree' // can be `null` for a flat display
    );

    // optional data
    $data->setTileExpansionIntervalCount(2);
    $data->setTileExpansionGrowthExpression('+ 4');
```

- Push data to the server:

```
    $client->push($data);
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.3% 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 ~24 days

Total

3

Last Release

2253d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/58fb41ad66c6b45096cad21d54aa1aacabcb9eedc8974664e1e6776327662816?d=identicon)[cawolf](/maintainers/cawolf)

---

Top Contributors

[![cawolf](https://avatars.githubusercontent.com/u/1932623?v=4)](https://github.com/cawolf "cawolf (13 commits)")[![cHeeSaW](https://avatars.githubusercontent.com/u/44266188?v=4)](https://github.com/cHeeSaW "cHeeSaW (3 commits)")

---

Tags

clientdashboardmonitoringph-ashphashphpsymfonypsr-7clientpsr-17psr-18Guzzlephashph-ash

### Embed Badge

![Health badge](/badges/ph-ash-client-php/health.svg)

```
[![Health](https://phpackages.com/badges/ph-ash-client-php/health.svg)](https://phpackages.com/packages/ph-ash-client-php)
```

###  Alternatives

[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[elastic/transport

HTTP transport PHP library for Elastic products

1920.6M7](/packages/elastic-transport)[vultr/vultr-php

The Official Vultr API PHP Wrapper.

2243.9k1](/packages/vultr-vultr-php)[amphp/http-client-psr7

PSR-7 adapter for Amp's HTTP client.

1454.7k4](/packages/amphp-http-client-psr7)[chillerlan/php-httpinterface

A PSR-7/17/18 http message/client implementation

1417.1k5](/packages/chillerlan-php-httpinterface)[chillerlan/php-oauth

A fully transparent, framework agnostic PSR-18 OAuth client.

4210.4k2](/packages/chillerlan-php-oauth)

PHPackages © 2026

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