Official PHP client for the Convertly media API.
composer require convertly/convertly-php<?php
require __DIR__ . '/vendor/autoload.php';
use Convertly\ConvertlyClient;
$convertly = new ConvertlyClient(getenv('CONVERTLY_API_KEY'));
$result = $convertly->convertFile(__DIR__ . '/photo.png', 'webp', [
'compression' => 'balanced',
'saveToStorage' => false,
]);This SDK covers the REST media API. CDN delivery is URL-based — see Image CDN and the setup guide. For JS/TS CDN helpers: @convertly-sh/image.
MIT © Convertly.
- Summary: MIT on Open Source Initiative
- Full text:
LICENSEin this package (included when installed via Composer / Packagist)