PHPackages                             seleda/dbeasy - 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. seleda/dbeasy

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

seleda/dbeasy
=============

v0.0.6(2y ago)056MITPHP

Since Aug 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Seleda/dbeasy)[ Packagist](https://packagist.org/packages/seleda/dbeasy)[ RSS](/packages/seleda-dbeasy/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (7)Used By (0)

dbeasy
======

[](#dbeasy)

Easy connection and work with the database

Project setup
-------------

[](#project-setup)

```
composer require seleda/dbeasy

```

Usage
-----

[](#usage)

Define global constants before calling:

- \_DB\_SERVER\_
- \_DB\_USER\_
- \_DB\_PASSWD\_
- \_DB\_NAME\_
- \_DB\_PREFIX\_(optional)

or

```
Seleda\Dbeasy\Db::$_servers = [
    [
        'server' => '',
        'user' => '',
        'password' => '',
        'database' => ''
    ]
];

```

Methods
-------

[](#methods)

```
Db::getInstance()->insert('table_without prefix', [
    'column' => $value
]);

```

```
Db::getInstance()->update('table_without prefix', [
    'column' => $value
], 'condition');

```

```
Db::getInstance()->delete('table_without prefix', 'condition');

```

Executes a query.

```
Db::getInstance()->execute($qyery);

```

Executes return the result of $sql as array.

```
Db::getInstance()->executeS($sql);

```

Returns an associative array containing the first row of the query This function automatically adds "LIMIT 1" to the query.

```
Db::getInstance()->getRow($sql);

```

Returns a value from the first row, first column of a SELECT query.

```
Db::getInstance()->getValue($sql);

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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 ~60 days

Recently: every ~75 days

Total

6

Last Release

753d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38981104?v=4)[Sergey P](/maintainers/seleda)[@Seleda](https://github.com/Seleda)

---

Top Contributors

[![Seleda](https://avatars.githubusercontent.com/u/38981104?v=4)](https://github.com/Seleda "Seleda (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/seleda-dbeasy/health.svg)

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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