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)

When enableE2ee: true is set:

  1. The SDK generates a P-256 ECDH key pair on startup
  2. The public key is sent as X-E2E-Public-Key header with every request
  3. The server encrypts the response using ECDH-P256 + HKDF-SHA256 + AES-256-GCM
  4. 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

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 ...