Skip to main content
Use bannerify/bannerify to call the Bannerify API from PHP without writing raw HTTP requests.

Install

Install via Composer:

Instantiate

You need a project API key before using the SDK. Create one in Dashboard → API Keys and keep it server-side.

Response format

To make error handling explicit and prevent forgotten error checks, we return errors as part of the response structure. Every method returns an array with either a result or an error field, never both and never none.

Checking for errors

To check for errors, use the error key in the response:

Options

The constructor accepts some options to customize the behavior:

API Key

apiKey
string
required
Your project’s API key

Base URL

Override the default API base URL:

Examples

Generate PNG Image

Generate WebP Image

Generate Signed URL