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)023.3k↑134.9%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 today

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 47% of packages

Maintenance34

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

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

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M992](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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