Getting Started
Before you can use this SDK in PHP, you need to install the SDK via the Composer package manager. This guide will walk you through the process of installing the SDK into your project.
Install the SDK
Within your Compose project, run the following command to install the SDK:
composer add surrealdb.php [version]
The latest version of the PHP SDK is
Using the SDK
Once you have installed the SDK, make sure to include the Composer autoloader in your PHP script:
require __DIR__ . '/vendor/autoload.php';
You can now use the SDK in your PHP script by importing it:
use Surreal\Surreal;
Now that you have the SDK installed and imported, you can start using the SDK to interact with SurrealDB.
Check out the initialization guide to learn more.