Clever Cloud PHP SDK — documentation¶
Guides¶
- Getting started — install, build a client, make your first call
- Authentication — API token (Bearer) and OAuth 1.0a 3-legged
- Configuration —
Configuration,RetryPolicy, custom HTTP client, hooks, logging - Error handling — the typed exception hierarchy and what each subclass tells you
- Live log streaming — iterate
LogStream<LogEntry>over Symfony SSE - Testing your code against the SDK —
MockHttpClientpatterns
Resource reference¶
Each page lists every method on the corresponding resource, with the exact signature and the underlying HTTP route.
V2¶
- Self
- Users
- Organisations
- Applications
- Add-ons
- Deployments
- Environment variables
- Domains
- TCP redirections
- Products — catalog of instance types, zones, countries, add-on providers
V4¶
- Billing
- Instances
- Load balancers
- Zones
- Logs
- Operators — Keycloak / Matomo / Metabase / Otoroshi
- Drains
- Notifications
- Webhooks
- Network groups
- Orchestration
- Pulsar policies
- Backups
Bridge (api-bridge.clever-cloud.com)¶
Enums¶
All under CleverCloud\Sdk\Model\Enum\:
Flavor—Pico Nano XS S M L XL XXL XXXL(pico..3XL)DeployType—Git Ftp DockerApplicationState— full lifecycle +isStable()/isTransient()helpersMigrationStatus—Success InProgress Pending Failed Cancelled+isTerminal()MemberRole—Admin Manager Developer AccountingDeploymentActionDeploymentStateDrainTypeWebhookFormat
Catalogues fetched live from Clever Cloud¶
| Method | Endpoint | Returns |
|---|---|---|
$client->products->instances() |
GET /v2/products/instances |
list<InstanceType> |
$client->products->zones() |
GET /v2/products/zones |
list<Zone> |
$client->products->countries() |
GET /v2/products/countries |
list<Country> |
$client->addons->providers() |
GET /v2/products/addonproviders |
list<AddonProvider> |
$client->addons->provider($id) |
GET /v2/products/addonproviders/{id} |
AddonProvider |
$client->applications->branches($appId) |
GET /v2/.../applications/{id}/branches |
list<string> |
$client->tcpRedirections->namespaces($orgId) |
GET /v2/.../tcp-redirs/namespaces |
list<string> |
See also¶
- Demo dashboard — a working Symfony 8 app that exercises every public method
- CHANGELOG