Skip to main content
The Infisical PHP SDK, infisical/php-sdk, lets a PHP application log in to Infisical as a machine identity and fetch its secrets at runtime. The SDK can also create, update, and delete secrets.

Installation

The SDK needs PHP 8.1 or later and Composer. In your project’s folder, run:
At the start of your code, load the packages that Composer installed:

Get started

Client and authentication

Configure the PHP SDK client and log in to Infisical.

Errors

Handle errors in the PHP SDK.