Surqlize is installed with Composer. It requires PHP 8.4 or later and depends on the alpha v2 SurrealDB PHP SDK.
Install the package
composer require surrealdb/surqlizeSurqlize depends on the alpha SDK, so your project must allow alpha releases. If Composer cannot resolve the SDK under the default stable minimum stability, lower the stability for the SDK or set it project-wide.
composer config minimum-stability alpha
composer config prefer-stable trueAdd an HTTP client
Surqlize runs queries through the SDK, which uses PSR-18 and PSR-17 interfaces for the HTTP transport. Install a client and factory implementation, plus discovery, when you connect over http:// or https://.
composer require guzzlehttp/guzzle php-http/discoveryThe WebSocket transport uses PHP's native stream functions and needs no extra packages. See the SDK installation guide for details.
Requirements
| Requirement | Version |
|---|---|
| PHP | >= 8.4 |
| SurrealDB PHP SDK | surrealdb/surrealdb.php (v2 alpha) |
| SurrealDB server | 1.x up to (but not including) 4.0.0 |