# PHP SDK v1

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.3`. A rewrite is available as [v2 (alpha)](/docs/reference/php/v2.md). If you are starting a new project and can accept alpha software, see the [migration guide](/docs/reference/php/v2/migration.md) 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.

## Getting started

- [Installation](/docs/reference/php/v1/installation.md) - Install the SDK with Composer.

- [Quickstart](/docs/languages/php.md) - Connect to SurrealDB and run your first queries.

## Concepts

- [Connecting to SurrealDB](/docs/reference/php/v1/concepts/connecting.md) - Initialize the SDK, connect, and select a namespace and database.

- [Authentication](/docs/reference/php/v1/concepts/authentication.md) - Sign up and sign in users with scopes, credentials, and tokens.

- [Executing queries](/docs/reference/php/v1/concepts/executing-queries.md) - Create, select, update, and delete records.

- [Methods](/docs/reference/php/v1/methods.md) - The full reference of methods on the Surreal class.

## Sources

- [GitHub repository](https://github.com/surrealdb/surrealdb.php)
- [Composer package](https://packagist.org/packages/surrealdb/surrealdb.php)
