定制 nerd-zero/infisical-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

nerd-zero/infisical-php

最新稳定版本:0.0.5

Composer 安装命令:

composer require nerd-zero/infisical-php

包简介

Infisical client for php

README 文档

README

by nerd-zeron0.rocks

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

  1. Easy to use
  2. No need to manually generate or fetch tokens — handled internally
  3. Only requires the Infisical base URI
  4. Automatic JSON encoding/decoding
  5. 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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-08