Version 1 of the PHP SDK is installed with the Composer package manager. It requires PHP 8.2 or later and the curl extension.
Install the SDK
Run the following command in your project to install the latest stable release.
Import the SDK
Include the Composer autoloader, then import the Surreal class.
You can now create a Surreal instance and connect to your database.
Next steps
Connecting to SurrealDB to open a connection
Quickstart to run your first queries