Client
new PoliPagePoliPage(apiKey: string, ...) Poli Page SDK client — entry point for the namespaced render API.
Constructor
Section titled “Constructor”Use the static factory for the default configuration:
$client = PoliPage\PoliPage::client($_ENV['POLI_PAGE_API_KEY']);Or call the full constructor to override baseUrl, timeout, maxRetries, inject a PSR-18 client, etc. See PoliPage for every parameter.
Namespaces
Section titled “Namespaces”The client exposes two namespace properties:
render— render PDFs (in memory, streaming, or as a stored document).documents— fetch, preview, thumbnail, or delete stored documents.
The standalone helper renderToFile is a free function in the PoliPage\ namespace, autoloaded via Composer.