Installation and requirements
ExecKernel can run inside your PHP application or as an independent HTTP service. Which packages you need depends on where the engine will run and how your application will communicate with it. For example, if you are adding graph execution to a PHP backend, you can get started with Composer alone: there is no need to deploy a separate service.
Choose your integration
Section titled “Choose your integration”| I want to… | What I need |
|---|---|
| Run graphs directly in PHP | The PHP package, which contains the engine and local SDK. |
| Run the engine as an HTTP service | A deployment of the independent ExecKernel API. |
| Call an existing ExecKernel API from PHP | The PHP package, using its remote client. |
| Call an existing ExecKernel API from JavaScript or TypeScript | The JavaScript SDK. |
| Call an existing ExecKernel API directly over HTTP | An HTTP client; installing an ExecKernel SDK is optional. |
The SDKs provide application-facing interfaces for starting sessions and navigating through graphs. The local PHP client calls the engine in the same PHP environment; the remote clients send HTTP requests to a running API. The JavaScript SDK is not a JavaScript implementation of the engine.
Install the PHP package
Section titled “Install the PHP package”You need PHP 8.2 or later in the PHP 8 series and Composer. The package declares PHP compatibility as ^8.2. Composer will also check the requirements of its dependencies against your PHP environment. For archive-based installations, make sure your Composer environment can extract ZIP archives (using the PHP zip extension, unzip or 7-Zip).
From the root directory of your PHP project, run:
composer require execkernel/execkernelThis adds the library to your project’s dependencies and generates or updates Composer’s autoloader. It includes the engine, the local and remote PHP clients, and the command-line tool for working with graph definitions. You do not need a separate PHP SDK package.
Check that Composer has installed the package and that your PHP environment satisfies its runtime dependencies:
composer show execkernel/execkernelcomposer check-platform-reqs --no-devThe first command displays the installed package and version; the second checks PHP and its required extensions. If Composer reports a missing extension or an incompatible PHP version, resolve that requirement in the environment where the application will run rather than ignoring platform requirements.
You can also check that the command-line tool is available:
vendor/bin/execkernel --helpIt should display the available commands, including graph validation and export. This checks that the installed CLI can start; you will learn how to run a graph in the Local PHP Quick Start.
If you intend to use this package to connect to an existing API instead, continue with the Remote PHP Quick Start.
Install the JavaScript and TypeScript SDK
Section titled “Install the JavaScript and TypeScript SDK”The JavaScript package is a client for the HTTP API. You need a JavaScript runtime with a Fetch API implementation (or an explicitly supplied compatible implementation), npm to install the package, and access to a running ExecKernel API to execute graphs. If you are starting from Node.js, a version with built-in fetch, such as Node.js 22, is a convenient choice.
In your JavaScript or TypeScript project’s directory, install the package:
npm install @execkernel/sdkThe package includes TypeScript declarations, so TypeScript projects use the same SDK rather than a separate types package. You can check the installed version with:
npm ls @execkernel/sdkThe output should list the SDK as an installed dependency. To use it, you will need the API’s base URL, a graph identifier and the appropriate credentials for your deployment. Keep service credentials on the server rather than embedding them in public browser code.
Continue with the JavaScript & TypeScript Quick Start.
Run the HTTP API
Section titled “Run the HTTP API”If you want to execute graphs outside your application’s PHP process, deploy the separate ExecKernel API. Its supplied container deployment uses Docker and Docker Compose, and includes the PHP application and the web server that exposes its HTTP interface. It also provides SQLite-backed session persistence.
The API needs access to its graph definitions and a persistent location for its session database. The supplied deployment is configured with an API token for access. These are service-side requirements, not additional dependencies for a local PHP installation or for a client that connects to an API someone else maintains.
The HTTP API Quick Start explains how to start the service, make your first requests and check that it is responding. If you already have access to an API, you can skip deployment and go directly to the relevant client quick start.