• Start

v1 (stable)

Overview

Version 1 is the current stable release of the SurrealDB PHP SDK, with direct RPC-style methods for querying a remote database.

Version 1 is the current stable release of the PHP SDK. It exposes a single Surreal class with direct, RPC-style methods such as create(), select(), query(), and signin(). Each method maps closely to a SurrealDB RPC call.

Note

The latest stable release is 2.0.0-alpha.1. A rewrite is available as v2 (alpha). If you are starting a new project and can accept alpha software, see the migration guide for the differences.

The SDK requires PHP 8.2 or later and the curl extension. It connects to a remote SurrealDB instance over HTTP or WebSocket.

Was this page helpful?