Install
The Poli Page PHP SDK ships as poli-page/sdk on Packagist. It targets PHP 8.3 or later and integrates with any PSR-18 HTTP client (Guzzle, Symfony HTTP Client, etc.).
Install with Composer
Section titled “Install with Composer”composer require poli-page/sdkYou also need a PSR-18 client and a PSR-17 message factory. The SDK ships with php-http/discovery, so any of these will be picked up automatically:
composer require guzzlehttp/guzzle# orcomposer require symfony/http-client nyholm/psr7See PSR-18 setup for the full integration story.
PHP version
Section titled “PHP version”The SDK targets PHP 8.3 and is tested against 8.3 and 8.4 on Linux, macOS, and Windows. See runtime support for the full matrix.
Example
Section titled “Example”<?php
require __DIR__ . '/vendor/autoload.php';
use PoliPage\PoliPage;
$client = PoliPage::client($_ENV['POLI_PAGE_API_KEY']);