PHPackages                             mathisburger/surrealdb - 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. [API Development](/categories/api)
4. /
5. mathisburger/surrealdb

ActiveLibrary[API Development](/categories/api)

mathisburger/surrealdb
======================

An API wrapper for the surrealdb API.

v1(3y ago)3112PHPPHP ^7.4 || 8.0.\*

Since Sep 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/MathisBurger/surrealdb.php)[ Packagist](https://packagist.org/packages/mathisburger/surrealdb)[ RSS](/packages/mathisburger-surrealdb/feed)WikiDiscussions master Synced 1mo ago

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

SurrealDb.php
=============

[](#surrealdbphp)

SurrealDb.php is a driver written in php for the surrealDb database. It supports some basic features that can be used to perform actions on the database. It uses the websocket API of the database.

Installation
============

[](#installation)

Installation is quite easy with

```
composer require mathisburger/surrealdb
```

Usage
=====

[](#usage)

Just require the package via composer and follow the following guide how to create a new entry in the database:

```
// Only needed for plain PHP scripts that do not use a framework like symfony
include './vendor/autoload.php';

use MathisBurger\SurrealDb\SurrealDriver;

$conn = new SurrealDriver('ws://127.0.0.1:8000/rpc');
$conn->login('root', 'root');
$conn->useDatabase('test', 'test');
$conn->create('user', ['username' => 'Mathis', 'password' => 'Test']);
```

License
=======

[](#license)

This project is MIT licensed.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1326d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f2d132e9c4675b1382109d106a342224ed7dd443a359930b202108d007daeb1b?d=identicon)[MathisBurger](/maintainers/MathisBurger)

---

Top Contributors

[![MathisBurger](https://avatars.githubusercontent.com/u/57145815?v=4)](https://github.com/MathisBurger "MathisBurger (32 commits)")

---

Tags

database-driverphpsurrealdbsurrealdb-driver

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/mathisburger-surrealdb/health.svg)

```
[![Health](https://phpackages.com/badges/mathisburger-surrealdb/health.svg)](https://phpackages.com/packages/mathisburger-surrealdb)
```

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[tivoka/tivoka

The universal JSON-RPC client/server library. JSON-RPC done right!

74159.0k3](/packages/tivoka-tivoka)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
