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

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

bramus/database
===============

A (Legacy) Database Layer for PHP

1.0(4y ago)181MITPHPPHP &gt;=7.2

Since Mar 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bramus/php-database)[ Packagist](https://packagist.org/packages/bramus/database)[ GitHub Sponsors](https://github.com/bramus)[ RSS](/packages/bramus-database/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

`bramus/database`
=================

[](#bramusdatabase)

[![Build Status](https://github.com/bramus/php-database/workflows/CI/badge.svg)](https://github.com/bramus/php-database/actions) [![Source](https://camo.githubusercontent.com/1d5761c21024313e86bf9c8fc16324b244814cdba9344045696b39658a89bfbe/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6272616d75732f64617461626173652d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/bramus/php-database) [![Version](https://camo.githubusercontent.com/c81e9f7c8f5aabe83bcb2b6b5e0d82be6a15f6b4cd63905573e809e610053755/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6272616d75732f64617461626173652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bramus/database) [![Downloads](https://camo.githubusercontent.com/1bf47ebcd130065c4a71a1557366a3401e2dadbae7bbae9bfc3031965e5554ae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6272616d75732f64617461626173652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bramus/database/stats) [![License](https://camo.githubusercontent.com/68eaa25ea49ef4d180883a29fd5c4b099c0c361e03b8b24d458953f713ca790e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6272616d75732f64617461626173652e7376673f7374796c653d666c61742d737175617265)](https://github.com/bramus/php-database/blob/master/LICENSE)

`bramus/database` is a (Legacy) Database/Repository Implementation for PHP.

Built by Bram(us) Van Damme *()* and [Contributors](https://github.com/bramus/php-database/graphs/contributors)

Prerequisites/Requirements
--------------------------

[](#prerequisitesrequirements)

- PHP 7.2 or greater

Installation
------------

[](#installation)

Installation is possible using Composer

```
$ composer require bramus/database ~1.0

```

Usage
-----

[](#usage)

@TODO

Testing
-------

[](#testing)

`bramus/database` ships with unit tests using [PHPUnit](https://github.com/sebastianbergmann/phpunit/) `~8.0` (@TODO).

- If PHPUnit is installed globally run `phpunit` to run the tests.
- If PHPUnit is not installed globally, install it locally throuh composer by running `composer install --dev`. Run the tests themselves by calling `./vendor/bin/phpunit` or using the composer script `composer test`

```
$ composer test

```

License
-------

[](#license)

`bramus/database` is released under the MIT public license. See the enclosed `LICENSE` for details.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

1524d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/213073?v=4)[Bramus](/maintainers/bramus)[@bramus](https://github.com/bramus)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[martin-georgiev/postgresql-for-doctrine

Extends Doctrine with native PostgreSQL support for arrays, JSONB, ranges, PostGIS geometries, text search, ltree, uuid, and 100+ PostgreSQL-specific functions.

4485.3M4](/packages/martin-georgiev-postgresql-for-doctrine)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[overtrue/laravel-versionable

Make Laravel model versionable.

585308.0k5](/packages/overtrue-laravel-versionable)[worksome/foggy

Foggy is a tool for making database dumps with some data removed/changed.

26571.7k1](/packages/worksome-foggy)[flow-php/doctrine-dbal-bulk

Bulk inserts and updates for Doctrine DBAL

14295.2k1](/packages/flow-php-doctrine-dbal-bulk)

PHPackages © 2026

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