PHPackages                             future-station/keyguard - 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. future-station/keyguard

ActiveLibrary[API Development](/categories/api)

future-station/keyguard
=======================

A PHP package for validating API keys, secrets, and tokens for popular services.

v0.1.1(1y ago)29BSD-3-ClausePHPPHP ^8.1

Since Aug 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/future-station/keyguard)[ Packagist](https://packagist.org/packages/future-station/keyguard)[ RSS](/packages/future-station-keyguard/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (16)Versions (3)Used By (0)

 [![KeyGuard](https://raw.githubusercontent.com/future-station/keyguard/main/art/example.png)](https://raw.githubusercontent.com/future-station/keyguard/main/art/example.png)

 [![GitHub Workflow Status (main)](https://camo.githubusercontent.com/82a91685ee8a6b808fe5618d2c2b3f9e8186c37f7dbdd9a80a2e87a8c72b524b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6675747572652d73746174696f6e2f6b657967756172642f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d726f756e642d737175617265)](https://github.com/future-station/keyguard/actions) [![Total Downloads](https://camo.githubusercontent.com/a979d26a33a244a54fda4631f2e382d52bd6c8235f0d1f5ef182d575d68f14a6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6675747572652d73746174696f6e2f6b65796775617264)](https://packagist.org/packages/future-station/keyguard) [![Latest Version](https://camo.githubusercontent.com/0fe0e857d2566a5bdfbd771084051c94142ff6b024d510c8986d6de87b86cff1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6675747572652d73746174696f6e2f6b65796775617264)](https://packagist.org/packages/future-station/keyguard) [![License](https://camo.githubusercontent.com/9ce15b3c9d13586b6e9523cb85d3b2cbd2ba99c23ee0ad1e6672ed06473741a6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6675747572652d73746174696f6e2f6b65796775617264)](https://packagist.org/packages/future-station/keyguard)

---

**KeyGuard** is a powerful PHP package designed to validate API keys, secrets, access tokens, and HMACs for popular services like OpenAI, GitHub, Shopify, and more. This tool is essential for developers and businesses that depend on secure and accurate validation of their API credentials.

### Contributors

[](#contributors)

This package is made possible thanks to the contributions of these developers:

- **[AkrAm](https://github.com/akr4m)**
- **[Shuvro Roy](https://github.com/shuvroroy)**

If you or your organization benefits from using KeyGuard, please consider supporting the developers who have invested their time and expertise into creating and maintaining this invaluable tool.

Get Started
-----------

[](#get-started)

> **Prerequisite:** PHP 8.1 or higher is required. [Download PHP](https://php.net/releases/)

### Installation

[](#installation)

To begin using KeyGuard, install the package via Composer:

```
composer require future-station/keyguard
```

If your project does not already include a PSR-18 HTTP client, ensure the `php-http/discovery` plugin is enabled, or manually install a compatible client such as Guzzle:

```
composer require guzzlehttp/guzzle
```

### Usage Example

[](#usage-example)

Below is a basic example demonstrating how to validate a GitHub API key using KeyGuard:

```
$yourApiKey = 'YOUR_API_KEY';
$keyguard = new KeyGuard();

$result = $keyguard
            ->validate(ServiceType::GITHUB, $yourApiKey);

echo $result->value; // Output: valid
```

### License

[](#license)

KeyGuard is open-source software licensed under the [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause).

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96% 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 ~1 days

Total

2

Last Release

675d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ba5307dd9bf29fdf264ba852cbc61be18acfaa17279090b1a0c18b4c38a4affa?d=identicon)[shuvroroy](/maintainers/shuvroroy)

![](https://avatars.githubusercontent.com/u/17238742?v=4)[AkrAm](/maintainers/akr4m)[@akr4m](https://github.com/akr4m)

---

Top Contributors

[![akr4m](https://avatars.githubusercontent.com/u/17238742?v=4)](https://github.com/akr4m "akr4m (24 commits)")[![shuvroroy](https://avatars.githubusercontent.com/u/21066418?v=4)](https://github.com/shuvroroy "shuvroroy (1 commits)")

---

Tags

access-tokenapi-key-authenticationapi-keysgithubhmacopenaiphpphp-libraryrest-apishopifyvalidate-tokenphpapiclientvalidationtokenopenaigithubkeyshopifysecret

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/future-station-keyguard/health.svg)

```
[![Health](https://phpackages.com/badges/future-station-keyguard/health.svg)](https://phpackages.com/packages/future-station-keyguard)
```

###  Alternatives

[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k28.0M315](/packages/openai-php-client)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

1003.9M50](/packages/getbrevo-brevo-php)[n1ebieski/ksef-php-client

PHP API client that allows you to interact with the API Krajowego Systemu e-Faktur

9067.8k](/packages/n1ebieski-ksef-php-client)[trycourier/courier

Courier PHP SDK

15660.9k](/packages/trycourier-courier)[anthropic-ai/sdk

Anthropic PHP SDK

163583.3k16](/packages/anthropic-ai-sdk)

PHPackages © 2026

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