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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sdk

Bella Baxter PHP SDK

Official PHP SDK for the Bella Baxter secret management platform.

Requirements

Installation

Quick Start

End-to-End Encryption (E2EE)

E2EE is always on — there is no option to enable or disable it. Every client installs E2EGuzzleMiddleware, which:

  1. Uses your device key (privateKey, or BELLA_BAXTER_PRIVATE_KEY, both from bella auth setup) or, when none is configured, a fresh ephemeral P-256 key pair
  2. Sends its public key as the X-E2E-Public-Key header on every read that carries secret values — the seven envelope-required reads of the SDK contract (all secrets, both exports, the provider list, one secret, one secret version, the global list), whether issued by getAllSecrets() or the Kiota client — and on nothing else
  3. The server encrypts the response using ECDH-P256 + HKDF-SHA256 + AES-256-GCM
  4. The SDK decrypts the response transparently and hands on the server's own JSON for that read

Secret values are never visible in plaintext — not in server logs, proxies, or network captures.

Fail closed (#1050). Once the key has been presented on a read that carries secret values, an answer that is not a decryptable envelope is refused with BellaBaxter\E2EEResponseException, never returned: getErrorCode() is e2ee-plaintext-response for plain secrets (a header-stripping proxy or a server regression) and e2ee-decryption-failed for an envelope that is malformed, tampered or encrypted to another key. There is no plaintext fallback.

API

getAllSecrets(): array<string,string>

Fetches all secrets for the project + environment the API key is scoped to.

getSecretsVersion(): array

Lightweight change check — returns environmentSlug, version and lastModified, no values.

getKeyContext(): array

The project and environment the API key is scoped to (GET /api/v1/keys/me).

getClient() and getRequestAdapter() — the full API

getClient() is the Kiota-generated client for every other endpoint; its requests go through the same signing and E2EE middleware. Each of the seven value-carrying reads declares the plaintext it returns in the OpenAPI document (#1187), so the typed get() parses the decrypted answer; getRequestAdapter() reads the same answer as a raw body:

Configuration

BaxterClientOptions constructor arguments (use named arguments):

Option Type Default Description
baxterUrl string https://api.bella-baxter.io Base URL of the Baxter API
apiKey string — (required) Bella Baxter API key, bax-<keyId>-<secret>
timeoutSeconds int 10 HTTP request timeout
privateKey ?string null PKCS#8 PEM device key; falls back to BELLA_BAXTER_PRIVATE_KEY
onWrappedDekReceived ?callable null (string $wrappedDek, ?string $leaseExpires): void, called on X-Bella-Wrapped-Dek

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

PHP Build Version
Package Version
Requires php Version ^8.1
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bella-baxter/sdk contains the following files

Loading the files please wait ...