PHPackages                             teddybear06/edgedb-php - 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. teddybear06/edgedb-php

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

teddybear06/edgedb-php
======================

An unofficial EdgeDB PHP client.

v0.3.1(3y ago)982WTFPLPHPPHP &gt;=8.0

Since Feb 18Pushed 3y ago2 watchersCompare

[ Source](https://github.com/TeddyBear06/edgedb-php)[ Packagist](https://packagist.org/packages/teddybear06/edgedb-php)[ RSS](/packages/teddybear06-edgedb-php/feed)WikiDiscussions main Synced 1w ago

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

Unofficial EdgeDB HTTP PHP client
=================================

[](#unofficial-edgedb-http-php-client)

Requirements
------------

[](#requirements)

- PHP &gt;= 8.0 (with fileinfo and mbstring)
- An EdgeDB server instance (tested with 2.0.5+f78cf34)

Quickstart
----------

[](#quickstart)

Add this package to your project:

```
$ composer require teddybear06/edgedb-php
```

This is a complete usage example (or look at ):

```
// Require Composer's autoloader
require '/vendor/autoload.php';

// Use required classes
use TeddyBear06\EdgeDbPhp\EdgeDbHttpClient;
use TeddyBear06\EdgeDbPhp\EdgeQlQuery;

// Establish a connection with the EdgeDB server instance
$connection = new EdgeDbHttpClient('127.0.0.1', '10700', 'edgedb');

// Create an EdgeQL query
$query = new EdgeQlQuery(
    'select Author {firstname, lastname} filter .lastname = $lastname;',
    ['lastname' => 'Doe']
);

// Execute the query
$response = $connection->query($query);

// If there is no error message
if (is_null($response->getError())) {

    // If there is at least 1 result
    if ($response->countData() > 0) {

        // Loop over results
        foreach ($response->getData() as $data) {
            echo $data['firstname'];
        }

    } else {

        // Data set is empty
        echo 'No matches found...';

    }

} else {

    // Call $response->getError() to get error details
    // message, type or code array indexes are available
    echo $response->getError()['message'];

}
```

Documentation
-------------

[](#documentation)

For a complete API documentation, please go here :

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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

Every ~31 days

Recently: every ~46 days

Total

7

Last Release

1364d ago

### Community

Maintainers

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

---

Top Contributors

[![TeddyBear06](https://avatars.githubusercontent.com/u/1452474?v=4)](https://github.com/TeddyBear06 "TeddyBear06 (11 commits)")

---

Tags

phpedgedb

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/teddybear06-edgedb-php/health.svg)

```
[![Health](https://phpackages.com/badges/teddybear06-edgedb-php/health.svg)](https://phpackages.com/packages/teddybear06-edgedb-php)
```

###  Alternatives

[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

9.4k2.8k](/packages/leantime-leantime)[forkcms/forkcms

Fork is an open source CMS that will rock your world.

1.2k44.5k](/packages/forkcms-forkcms)[bensontrent/firestore-php

Firestore PHP Client without gRPC and support for Guzzle 7. Forked from archived project ahsankhatri/firestore-php

2190.0k](/packages/bensontrent-firestore-php)[eftec/pdoone

Minimaist procedural PDO wrapper library

1105.9k9](/packages/eftec-pdoone)[laravel-freelancer-nl/arangodb-php-client

Low level PHP client for ArangoDB

1415.9k1](/packages/laravel-freelancer-nl-arangodb-php-client)[simple-swoole/db

A db component for Simps.

216.3k3](/packages/simple-swoole-db)

PHPackages © 2026

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