Download the PHP package bella-baxter/sdk without Composer
On this page you can find all versions of the php package bella-baxter/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bella-baxter/sdk
More information about bella-baxter/sdk
Files in bella-baxter/sdk
Package sdk
Short Description Official PHP SDK for the Bella Baxter secret management platform
License MIT
Homepage https://bella-baxter.io
Informations about the package sdk
Bella Baxter PHP SDK
Official PHP SDK for the Bella Baxter secret management platform.
Requirements
- PHP 8.1+
- Extensions:
ext-curl,ext-json,ext-openssl(all bundled by default)
Installation
Quick Start
End-to-End Encryption (E2EE)
When enableE2ee: true is set:
- The SDK generates a P-256 ECDH key pair on startup
- The public key is sent as
X-E2E-Public-Keyheader with every request - The server encrypts the response using ECDH-P256 + HKDF-SHA256 + AES-256-GCM
- The SDK decrypts the response transparently
Secret values are never visible in plaintext — not in server logs, proxies, or network captures.
API
getAllSecrets(): array<string,string>
Fetches all secrets for the configured environment.
getSecret(string $key): string
Fetches all secrets and returns a single value by key. Throws \RuntimeException if not found.
getSecretsVersion(int $version): array<string,string>
Fetches secrets at a specific version snapshot.
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
baxterUrl |
string |
— | Base URL of the Baxter API |
clientId |
string |
— | API key client ID |
clientSecret |
string |
— | API key client secret |
environmentSlug |
string |
— | Environment slug (e.g. production) |
enableE2ee |
bool |
false |
Enable end-to-end encryption |
timeoutSeconds |
int |
10 |
HTTP request timeout |
Laravel Integration
Symfony Integration
Typed Secret Code Generation
bella secrets generate php fetches the secrets manifest (key names + type hints, no values) from the Bella API and generates a typed AppSecrets class. Each method calls getenv() at runtime — no secret values are ever embedded in the generated file.
Generated AppSecrets.php:
Usage alongside the SDK
Because each method reads getenv() on every call, values updated between requests (or via bella watch) are always current.
Options
| Option | Default | Description |
|---|---|---|
-p, --project <slug> |
.bella context |
Project slug |
-e, --environment <slug> |
.bella context |
Environment slug |
--provider <slug> |
default |
Provider slug |
-o, --output <path> |
AppSecrets.php |
Output file path |
--class-name <name> |
AppSecrets |
Class name |
--dry-run |
— | Print to stdout without writing |
All versions of sdk with dependencies
ext-json Version *
ext-openssl Version *
microsoft/kiota-abstractions Version ^1.0
microsoft/kiota-http-guzzle Version ^1.0
microsoft/kiota-serialization-json Version ^1.0
microsoft/kiota-serialization-text Version ^1.0
microsoft/kiota-serialization-form Version ^1.0
microsoft/kiota-serialization-multipart Version ^1.0