Skip to main content
PHP 8.0+, PSR-18 compatible, distributed as a Composer package. Can be pointed at any PSR-18 HTTP client.

Install

Initialize

The key is sent as the x-api-key header on every request. There is no header option, by design.

Make a request

Read operations that take filters take a single associative array:
Single-resource and search operations use the same shape:

Write operations

Error handling

Errors are return values, not exceptions, unless you opt in:
To throw an ApiError instead:

Timeouts

timeoutMs defaults to 0, which means no timeout — a request will hang until the server or PHP’s max_execution_time stops it. Set it explicitly in production.

Escaping the resource wrapper

$cms->raw is the underlying HTTP client. This is also the only place the SDK accepts a per-request headers array, for cases where an individual call needs something extra:

Resources

article, author, category, subcategory, form, formSubmission, language, tag, report, ai, aiConversation, raw.

All operations

Browse the API reference for the full endpoint list.