PHPackages                             peakhour-io/peakhour-api - 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. [API Development](/categories/api)
4. /
5. peakhour-io/peakhour-api

ActiveLibrary[API Development](/categories/api)

peakhour-io/peakhour-api
========================

Idiomatic PHP client for https://www.peakhour.io/api/explore/

0.1.1(1y ago)024.4k↑153%PHP

Since Sep 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/peakhour-io/peakhour-php-api)[ Packagist](https://packagist.org/packages/peakhour-io/peakhour-api)[ RSS](/packages/peakhour-io-peakhour-api/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

peakhour-io/peakhour-api
========================

[](#peakhour-iopeakhour-api)

Idiomatic PHP client for  using Guzzle.

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

[](#installation)

`composer require peakhour-io/peakhour-api`

(and the usual )

Usage
-----

[](#usage)

```
$client = (new \PeakhourIo\Client(['base_uri' => 'https://www.peakhour.io']))
    ->setAuthApiKey('')
    ->setDomain('www.example.com');
$response = $client->domains()->flushResources([
    '/about',
    '/blog/1337'
]);

$code = $response->getStatusCode();
if ($code !== 202) {
    // Error handling (...)
}
```

Misc
----

[](#misc)

This client is inspired from the design of , but simpler. The aim here is to have a library easy and intuitive to use in applications, by following common designs in API client.

Peakhour.io/api is a 140-endpoints big API. In the current stage this client is implementing 2 endpoints (purge functionality). It is possible and it is intended to extend it to more endpoints when required.

The library embraces the concept of namespace to separate the endpoints into group of functionalities thus reducing the complexity. The Connection part is a light wrapper around Guzzle, miming its interface and handling authentication and data encoding.

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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 ~8 days

Total

5

Last Release

666d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a28ee9b93ea4f5963ef000edf97edd4c4a6bdb09fa20f107bb2c8a118912a56?d=identicon)[gabriel-gtg](/maintainers/gabriel-gtg)

### Embed Badge

![Health badge](/badges/peakhour-io-peakhour-api/health.svg)

```
[![Health](https://phpackages.com/badges/peakhour-io-peakhour-api/health.svg)](https://phpackages.com/packages/peakhour-io-peakhour-api)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k55](/packages/neuron-core-neuron-ai)[files.com/files-php-sdk

Files.com PHP SDK

2482.9k](/packages/filescom-files-php-sdk)[volcengine/volcengine-php-sdk

119.5k](/packages/volcengine-volcengine-php-sdk)

PHPackages © 2026

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