Download the PHP package giveitsmaller/sdk without Composer
On this page you can find all versions of the php package giveitsmaller/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download giveitsmaller/sdk
More information about giveitsmaller/sdk
Files in giveitsmaller/sdk
Package sdk
Short Description PHP SDK for GISL (Give It Smaller) compression service
License Apache-2.0
Homepage https://docs.giveitsmaller.com
Informations about the package sdk
giveitsmaller/sdk — PHP SDK for GISL
The official PHP SDK for Give It Smaller (GISL) — a file compression and media-processing service. Compress, convert, thumbnail, and merge images, video, audio, and documents from PHP 8.1+.
Read-only mirror. This repository is automatically published from Give It Smaller's private monorepo on each release. Do not open issues or pull requests here — they are not monitored. Licensed under Apache-2.0.
📖 Full documentation: giveitsmaller.com
Install
The SDK code-targets PSR-18 / PSR-17 and resolves a concrete HTTP client at runtime via php-http/discovery. When your project has no PSR-18/PSR-17 implementation, the php-http/discovery Composer plugin installs one, but only if Composer lets it run:
- Interactive
composer require giveitsmaller/sdk: Composer asks whether to trustphp-http/discovery; answer yes and it installs a client. - Non-interactive (CI, Docker builds,
--no-interaction): Composer does not ask and does not run an unapproved plugin, so no client is installed. Allow the plugin first:
Or install a client yourself; Guzzle is the path of least resistance. Without any client, constructing the SDK raises a GislConfigError saying what to install:
Requires PHP ^8.1.
Bring your own PSR-18 client. The SDK's runtime imports only PSR-18 interfaces, so you can use any implementation (e.g. Symfony HttpClient) instead of Guzzle — inject it via
Gisl::create(httpClient: ...). Published on Packagist — thecomposer requireabove is all you need (norepositoriesblock or auth token).
Quickstart
Install the SDK and an HTTP client:
The SDK is file-first: you always start from a file (->file($path) for one,
->files([$paths]) for many) and call operations on it.
Operation-first also ships. A lower-level
$client->compress($path, [...])->run(new RunOptions(...))form (andthumbnail/convert) is available as an escape hatch, but file-first is the recommended direction.
Documentation
Full documentation — getting started, the client reference and ergonomic builders, operation options, progress events (SSE), webhooks, error/retry guidance, and per-operation examples — lives at giveitsmaller.com.
License
Apache-2.0 — see the LICENSE file.
All versions of sdk with dependencies
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.1 || ^2.0
php-http/discovery Version ^1.19
psr/http-client-implementation Version *
psr/http-factory-implementation Version *
giveitsmaller/contracts Version ^0.96.0