Download the PHP package buble/sdk without Composer

On this page you can find all versions of the php package buble/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

Buble SDK for PHP

Official PHP SDK for Buble, built for the Buble public API.

Use this SDK from server-side PHP applications to discover media models, upload source media, create asynchronous image and video generation tasks, run preconfigured Buble app workflows, and call chat models through OpenAI, Anthropic Messages, and Gemini-compatible API formats.

Keep API keys on the server. Do not expose BUBLE_API_KEY in browser, mobile, or other client-side code.

Installation

After publication to Packagist:

The package requires PHP 8.2+, ext-curl, and ext-json.

Quick Start

Set your API key:

The generation examples below create real Buble generation tasks and may consume credits.

The client reads BUBLE_API_KEY and BUBLE_BASE_URL from the environment when omitted.

Configuration

Discover Media Models

Use media model discovery as the source of truth for model keys, modes, required inputs, and public parameters. New Buble models can become available without an SDK release.

Upload Files

Uploads support local paths, strings of bytes, and PHP stream resources. Path uploads are streamed from disk by cURL.

Video Generation

Generation request bodies use Buble's flat public API shape. Put model-specific controls in withParam(...); the SDK serializes those controls at the JSON request root.

Do not send internal Buble fields such as input, options, scene, sub_mode_id, provider, mediaType, or media_type.

Apps

Apps are preconfigured workflows. Only send parameter names returned by apps()->list() or apps()->retrieve(...).

Chat

OpenAI-Compatible

Streaming

Anthropic-Compatible

Gemini-Compatible

Gemini streaming uses streamGenerateContent, not stream: true on generateContent.

Chat methods preserve protocol-native response shapes as associative arrays.

Error Handling

Development

Live smoke test:

The live smoke test calls discovery endpoints only and does not create billable generation tasks.

Publishing Checklist

Packagist package identity:

Because this repository is a multi-language monorepo, publish the PHP SDK through a PHP-only split repository rather than submitting the monorepo root to Packagist:

Create and push a release tag in the PHP-only repository:

Submit the PHP-only repository to Packagist:

Configure the GitHub/Packagist hook so new tags are indexed automatically. Composer package versions are immutable once tagged; fixes after v0.1.0 should use a new tag such as v0.1.1.


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-curl Version *
ext-json Version *
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 buble/sdk contains the following files

Loading the files please wait ...