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)021.4k↓25%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 1mo 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

28

—

LowBetter than 54% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity33

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

574d 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

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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