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

Abandoned → [fireboostio/fireboost-php-client](/?search=fireboostio%2Ffireboost-php-client)Library[HTTP &amp; Networking](/categories/http)

fireboostio/php-client
======================

This package is a php client to the fireboostio api.

v0.0.9(10mo ago)10MITPHPPHP ^7.3 || ^8.0

Since Jul 4Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/fireboostio/fireboost-php-client)[ Packagist](https://packagist.org/packages/fireboostio/php-client)[ Docs](https://fireboost.io)[ RSS](/packages/fireboostio-php-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (4)Versions (17)Used By (0)

PHP Client for Fireboost.io
===========================

[](#php-client-for-fireboostio)

This PHP client allows you to communicate with the Fireboost API. For login credential extraction, you can use the [php-encryptor](https://github.com/fireboostio/php-encryptor) repository.

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

[](#installation)

You can install the PHP client via Composer:

```
composer require fireboostio/fireboost-php-client
```

Usage
-----

[](#usage)

### Authentication and Obtaining JWT Token

[](#authentication-and-obtaining-jwt-token)

To authenticate and obtain a JWT token for further communication, use the following code snippets:

#### Without the Encryptor Repository

[](#without-the-encryptor-repository)

```
use FireboostIO\Api\FireboostApi;
use FireboostIO\Model\LoginInput;

$api = new FireboostApi();
$response = $api->login(new LoginInput([
    'encrypted_api_key' => 'your_encrypted_api_key'
]));
$jwt = $response->getJwtToken();
```

#### With the Encryptor Repository

[](#with-the-encryptor-repository)

```
use FireboostIO\Api\FireboostApi;
use Fireboostio\Encryptor\CredentialExtractor;
use FireboostIO\Model\LoginInput;

$encryptor = new CredentialExtractor();
$loginInputData = $encryptor->getLoginInputData($fireboostioKey);

$api = new FireboostApi();
$response = $api->login(new LoginInput($loginInputData));
$jwt = $response->getJwtToken();
```

### Setting the JWT Token for Secure API Calls

[](#setting-the-jwt-token-for-secure-api-calls)

Once you have the JWT token, set it in the client configuration for further secure API calls:

```
use FireboostIO\Configuration;

$config = new Configuration();
$config->setAccessToken($jwt);
$config->setApiKeyPrefix('bearer', 'Bearer');

$api = new FireboostIO\Api\FireboostApi(null, $config);
```

API Examples
------------

[](#api-examples)

### Read a Cache (Secure Endpoint)

[](#read-a-cache-secure-endpoint)

```
$response = $api->getCache('cache_key');
var_dump($response->getResult()[0]);
```

### Write Cache (Secure Endpoint)

[](#write-cache-secure-endpoint)

```
use FireboostIO\Model\SetInput;

$response = $api->setCache(new SetInput([
    'cache_key' => 'test.com/news/post/1234',
    'content' => json_encode(['whatever' => 'you like']),
    'is_public' => true // or false
]));
```

### Read a Public Cache (Non-Secure Endpoint)

[](#read-a-public-cache-non-secure-endpoint)

```
$response = $api->publicGetCache('cache_key');
var_dump($response->getResult()[0]);
```

### Delete a Cache (Secure Endpoint)

[](#delete-a-cache-secure-endpoint)

```
$response = $api->deleteCache('cache_key');
```

### Delete All Cache (Secure Endpoint)

[](#delete-all-cache-secure-endpoint)

```
$response = $api->deleteAllCache();
```

### Get All Cache (Secure Endpoint)

[](#get-all-cache-secure-endpoint)

```
// Get the first page of cache entries
$response = $api->getAllCache();

// Get subsequent pages using the cursor
$cursor = $response->getCursor();
if ($cursor) {
    $nextPageResponse = $api->getAllCache($cursor);
}

// Access the cache entries
$cacheEntries = $response->getKeys();
foreach ($cacheEntries as $entry) {
    var_dump($entry);
}
```

LICENSE
-------

[](#license)

This project is licensed under the MIT License. See the [LICENSE](https://github.com/fireboostio/php-client/blob/main/LICENSE) file for details.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance54

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.6% 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 ~45 days

Recently: every ~4 days

Total

9

Last Release

317d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0becae783b1cfccd0acb9112b005512188c6345195995bca1cf6725d72659e9?d=identicon)[fireboost.io](/maintainers/fireboost.io)

---

Top Contributors

[![bodorszilard](https://avatars.githubusercontent.com/u/10059002?v=4)](https://github.com/bodorszilard "bodorszilard (14 commits)")[![lehelmatyus](https://avatars.githubusercontent.com/u/1402112?v=4)](https://github.com/lehelmatyus "lehelmatyus (8 commits)")

---

Tags

phpapisdkrestfireboostiofirebostioapi

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)[ory/hydra-client

Documentation for all of Ory Hydra's APIs.

17435.9k](/packages/ory-hydra-client)[zenditplatform/zendit-php-sdk

PHP client for Zendit API

1204.3k](/packages/zenditplatform-zendit-php-sdk)[huaweicloud/huaweicloud-sdk-php

Huawei Cloud SDK for PHP

1829.2k2](/packages/huaweicloud-huaweicloud-sdk-php)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)

PHPackages © 2026

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