nerd-zero/infisical-php
最新稳定版本:0.0.5
Composer 安装命令:
composer require nerd-zero/infisical-php
包简介
Infisical client for php
README 文档
README
A PHP client library for interacting with the Infisical secrets management platform. This package allows developers to programmatically fetch and manage secrets stored in Infisical within their PHP applications.
⚠️ Warning: This project is still a work in progress. APIs, features, and usage may change at any time without notice. Please use with caution and pin versions accordingly if used in production.
📦 Installation
Install via Composer:
composer require nerd-zero/infisical-php
📚 Table of Contents
🚀 Introduction
This is a PHP client to connect to the Infisical Secrets Management API with minimal setup and ease of use.
🔧 Features
- Easy to use
- No need to manually generate or fetch tokens — handled internally
- Only requires the Infisical base URI
- Automatic JSON encoding/decoding
- Works with clean associative arrays and native PHP data
🧪 How to Use
use Infisical\InfisicalClient; $client = InfisicalClient::factory( baseUri: 'your-infisical-base-uri', clientId: 'your-infisical-client-id', clientSecret: 'your-infisical-client-secret', ); // Get all secrets $secrets = $client->listSecrets([ 'workspaceId' => 'your-workspace-id', 'environment' => 'your-environment', 'path' => 'your-path', ]);
⚙️ Customization
(Coming soon — details on middleware, request retries, logging, and more.)
📖 Supported Endpoints
🔐 Authentication Management
| Description | Function Name | Supported |
|---|---|---|
| — | — | — |
(Functions will be documented soon.)
📁 Folder Management
| Description | Function Name | Supported |
|---|---|---|
| List folders | listFolders() |
✔️ |
| Get by ID | getFolderById() |
✔️ |
| Create folder | createFolder() |
✔️ |
| Update folder | updateFolder() |
✔️ |
| Delete folder | deleteFolder() |
✔️ |
🔑 Secret Management
| Description | Function Name | Supported |
|---|---|---|
| List secrets | listSecrets() |
✔️ |
| Create secret | createSecret() |
✔️ |
| Get by name | retrieveSecret() |
✔️ |
| Update secret | updateSecret() |
✔️ |
| Delete secret | deleteSecret() |
✔️ |
| Bulk Create Secrets | bulkCreateSecrets() |
✔️ |
| Bulk Update Secrets | bulkUpdateSecrets() |
✔️ |
| Bulk Delete Secrets | bulkDeleteSecrets() |
✔️ |
| Attach tags | attachTags() |
✔️ |
| Detach tags | detachTags() |
✔️ |
统计信息
- 总下载量: 1.65k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-08