Accessing every operation
Technical Preview
The PHP SDK is a technical preview. Its API surface may still evolve and changes may not follow semantic versioning. Pin an exact version if you need stability.
Every one of the 243 API operations is exposed as a method directly on the client — the flat facade — so you rarely need to reach for an API group:
$client = CamundaClient::fromEnvironment();
$topology = $client->getTopology();
$result = $client->createProcessInstance($instruction);
// The async client exposes the same surface, returning promises:
$async = CamundaAsyncClient::fromEnvironment();
$async->getTopology()->then(function ($topology) {
// Handle the resolved topology.
});
Beyond the ergonomic helpers and the flat facade, every API group is also reachable
through the typed api() accessor:
use Camunda\Orchestration\Api\Api\ProcessInstanceApi;
$processInstances = $client->api(ProcessInstanceApi::class);
$result = $processInstances->createProcessInstance($instruction);
See the examples/ directory for compilable, static-analyzed usage of the most common operations.