PHPackages                             devbr/database - 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. devbr/database

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

devbr/database
==============

Simple database node

0.2.4(8y ago)03102MITPHPPHP &gt;=5.6.3

Since Dec 17Pushed 8y ago2 watchersCompare

[ Source](https://github.com/devbr/database)[ Packagist](https://packagist.org/packages/devbr/database)[ Docs](http://dbrasil.tk/devbr/)[ RSS](/packages/devbr-database/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (10)DependenciesVersions (15)Used By (2)

Simple database node
====================

[](#simple-database-node)

[![Latest Stable Version](https://camo.githubusercontent.com/1e5d22e4bfb22893a32110ef65cc9ac41fa33be29fa776a759956562b682f47f/68747470733a2f2f706f7365722e707567782e6f72672f64657662722f776562736974652f762f737461626c65)](https://packagist.org/packages/devbr/database)[![Latest Unstable Version](https://camo.githubusercontent.com/c1ea2d3a39de3feb17a070b54745025441d3b680b0039d83281af05b7a213fc4/68747470733a2f2f706f7365722e707567782e6f72672f64657662722f776562736974652f762f756e737461626c65)](https://packagist.org/packages/devbr/database)[![License](https://camo.githubusercontent.com/72f63716465dab46c41a9583c0c844af106fe24f7e28587a5c00b24b9f227af1/68747470733a2f2f706f7365722e707567782e6f72672f64657662722f776562736974652f6c6963656e7365)](https://packagist.org/packages/devbr/database)[![Total Downloads](https://camo.githubusercontent.com/bb29464084800a67b7fb3187fe628f34c144ec08634e5e025ce9e32a7a1bd513/68747470733a2f2f706f7365722e707567782e6f72672f64657662722f776562736974652f646f776e6c6f616473)](https://packagist.org/packages/devbr/database)[![Monthly Downloads](https://camo.githubusercontent.com/517e6b24b9280f934b31b4b58008fa03df9430f3af32ee28069ed4e1154a17dd/68747470733a2f2f706f7365722e707567782e6f72672f64657662722f776562736974652f642f6d6f6e74686c79)](https://packagist.org/packages/devbr/database)

To install:

```
Composer require devbr/database
```

Uso
---

[](#uso)

Uma simples utilização do Database:

```
$cfg = [];

$db = new Devbr\Database($cfg);
print_r($db->query('SELECT * FROM TABELA'));
```

Se você estiver usando o 'devbr/website' como base do seu projeto é possível extender a configuração na classe 'Config\\Database', ficando mais simples o uso:

```
$db = new Devbr\Database;

$db->query('SELECT * FROM TABELA');

print_r($db->result());

//Passando arqumentos:
$args = [':id'=>23];

$db->query('SELECT * FROM TABELA WHERE ID=:id', $args);

print_r($db->result());
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52.5% 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 ~29 days

Recently: every ~45 days

Total

14

Last Release

3103d ago

PHP version history (3 changes)0.0.1PHP &gt;=7.0.0

0.0.4PHP &gt;=5.6.28

0.2.1PHP &gt;=5.6.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/1afbdaef1e7a22a196a765229a8664640c368682e8af063815df3813ccfa3df7?d=identicon)[pedra](/maintainers/pedra)

---

Top Contributors

[![supremacia](https://avatars.githubusercontent.com/u/16003817?v=4)](https://github.com/supremacia "supremacia (21 commits)")[![pedra](https://avatars.githubusercontent.com/u/4870358?v=4)](https://github.com/pedra "pedra (18 commits)")[![zuw](https://avatars.githubusercontent.com/u/6869530?v=4)](https://github.com/zuw "zuw (1 commits)")

---

Tags

databasemysqloracledb

### Embed Badge

![Health badge](/badges/devbr-database/health.svg)

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

###  Alternatives

[envms/fluentpdo

FluentPDO is a quick and light PHP library for rapid query building. It features a smart join builder, which automatically creates table joins.

921530.0k13](/packages/envms-fluentpdo)[lichtner/fluentpdo

FluentPDO is a quick and light PHP library for rapid query building. It features a smart join builder, which automatically creates table joins.

922281.8k6](/packages/lichtner-fluentpdo)[fpdo/fluentpdo

FluentPDO is a quick and light PHP library for rapid query building. It features a smart join builder, which automatically creates table joins.

922249.3k8](/packages/fpdo-fluentpdo)[rah/danpu

Zero-dependency MySQL dump library for easily exporting and importing databases

62410.3k11](/packages/rah-danpu)[davmixcool/php-dbcloud

Easily backup PostgreSql or MySql database to the cloud

111.5k](/packages/davmixcool-php-dbcloud)

PHPackages © 2026

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