PHPackages                             easydb-io/easydb - 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. easydb-io/easydb

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

easydb-io/easydb
================

A PHP client for easydb.io

001PHPCI failing

Since Nov 25Pushed 6y ago2 watchersCompare

[ Source](https://github.com/EasyDB-io/PHP-Client)[ Packagist](https://packagist.org/packages/easydb-io/easydb)[ RSS](/packages/easydb-io-easydb/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

EasyDB
======

[](#easydb)

This is the PHP client to connect with [easydb.io](https://easydb.io/) databases.

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

[](#installation)

**Requires PHP 7.1**

Install with composer:

```
composer require easydb-io/easydb

```

Usage
=====

[](#usage)

Instantiation
-------------

[](#instantiation)

`use EasyDB\EasyDB;`

`$config = require __DIR__ . '/config/databases.php';`

`$db = new EasyDB('db1', $config); `

This assumes your environment variables are already loaded and you are not using this as a part of a framework.

For example, if you are using Laravel, you could just do this:

`use EasyDB\EasyDB;`

`$db = new EasyDB('db1', config('easydb.db1')); `

The config file has the ability to use multiple databases, and this instance I used the first one in the config file.

List
----

[](#list)

`$db->list()`

Returns all values stored.

Put
---

[](#put)

`$db->put('test', 'hello world')`

This operation will store scalar values as well as arrays. However **please note** that this operation already uses json\_encode.

Get
---

[](#get)

`$db->get($key)`

Returns the value associated with the key. **Please note** this returns the raw json, so if you want an array you will have to call json\_encode for yourself if you need to. For scalars you won't need to to this but if you stored an array and want to work on it server side, you will.

Delete
------

[](#delete)

`$db->delete($key)`

Deletes the value associated with the key add returns and empty string.

Testing
=======

[](#testing)

If you want to run the tests, make sure you copy the .env.example to .env and fill it enter the credentials, or as mentioned above, inject the config variables in some other way.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 60% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10645647?v=4)[Tyson Battistella](/maintainers/tbtstl)[@tbtstl](https://github.com/tbtstl)

---

Top Contributors

[![tbtstl](https://avatars.githubusercontent.com/u/10645647?v=4)](https://github.com/tbtstl "tbtstl (3 commits)")[![JakeCooper](https://avatars.githubusercontent.com/u/5499880?v=4)](https://github.com/JakeCooper "JakeCooper (1 commits)")[![thehypergraph](https://avatars.githubusercontent.com/u/616532?v=4)](https://github.com/thehypergraph "thehypergraph (1 commits)")

### Embed Badge

![Health badge](/badges/easydb-io-easydb/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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