PHPackages                             surrealdb/surqlize - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. surrealdb/surqlize

ActiveLibrary[Database &amp; ORM](/categories/database)

surrealdb/surqlize
==================

SurrealDB ORM for PHP — attribute-driven models, edges, and query builder.

0.0.1-alpha.2(today)00MITPHPPHP &gt;=8.4CI passing

Since Jun 24Pushed todayCompare

[ Source](https://github.com/surrealdb/surqlize.php)[ Packagist](https://packagist.org/packages/surrealdb/surqlize)[ RSS](/packages/surrealdb-surqlize/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (3)Versions (6)Used By (0)

Surqlize
========

[](#surqlize)

Surqlize is a SurrealDB ORM for PHP. It provides attribute-driven models, typed query helpers, graph edge traversal, mutation builders, schema tooling, and code generation on top of the `surrealdb/surrealdb.php` SDK.

The package is designed around a small core idea: describe your SurrealDB tables with PHP models and attributes, then compose SurrealQL through typed PHP APIs instead of string concatenation.

Features
--------

[](#features)

- Attribute-driven table and edge models with `#[Table]`, `#[Edge]`, `#[Id]`, `#[Schema]`, `#[Cast]`, `#[Search]`, `#[Vector]`, and `#[Geometry]`.
- AST-based query compilation for deterministic SurrealQL output.
- Bound execution through the SurrealDB PHP SDK, using `BoundQuery` for runtime values.
- Typed field adapters for IDE-friendly `select()`, `where()`, `orderBy()`, `fetch()`, and projection callbacks.
- Model helpers for create, update, upsert, delete, find, count, exists, refresh, and bulk mutations.
- Graph traversal fields for `->edge->table` and `
