承接 future-station/keyguard 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

future-station/keyguard

最新稳定版本:v0.1.1

Composer 安装命令:

composer require future-station/keyguard

包简介

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

README 文档

README

KeyGuard

GitHub Workflow Status (main) Total Downloads Latest Version License

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

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

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

Prerequisite: PHP 8.1 or higher is required. Download PHP

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

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

KeyGuard is open-source software licensed under the BSD 3-Clause License.

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2024-08-24