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.
Package sdk
Short Description Official PHP SDK for the Buble public API.
License MIT
Homepage https://buble.ai/
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:
- Package name:
buble/sdk - Namespace:
Buble\ - License: MIT
- Homepage:
https://buble.ai/
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
ext-curl Version *
ext-json Version *