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

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

gluephp/glue-database
=====================

Use mrjgreen/database in Glue

0.1.0(10y ago)01271MITPHPPHP &gt;=5.5.0

Since May 6Pushed 10y ago1 watchersCompare

[ Source](https://github.com/gluephp/glue-database)[ Packagist](https://packagist.org/packages/gluephp/glue-database)[ RSS](/packages/gluephp-glue-database/feed)WikiDiscussions develop Synced 4w ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

Database for Glue
=================

[](#database-for-glue)

Use [mrjgreen/database](https://github.com/mrjgreen/database) with [gluephp/glue](https://github.com/gluephp/glue)

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

[](#installation)

Use [Composer](http://getcomposer.org):

```
$ composer require gluephp/glue-database
```

Configuration
-------------

[](#configuration)

```
$app = new Glue\App;

$app->config->override([
    'database' => [
        'driver'    => 'mysql',
        'host'      => 'localhost',
        'username'  => 'root',
        'password'  => 'password',
        'charset'   => 'utf8',
        'collation' => 'utf8_unicode_ci',
    ]
]);
```

More configuration options can be found at

Register
--------

[](#register)

```
$app->register(
    new Glue\Database\ServiceProvider()
);
```

Get the Database Connection instance
------------------------------------

[](#get-the-database-connection-instance)

Once the service provider is registered, you can fetch the Whoops instance with:

```
$db = $app->make('Database\Connection');
```

or use the alias:

```
$db = $app->db;
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

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

Unknown

Total

1

Last Release

3708d ago

### Community

Maintainers

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

---

Top Contributors

[![magnus-eriksson](https://avatars.githubusercontent.com/u/3640297?v=4)](https://github.com/magnus-eriksson "magnus-eriksson (2 commits)")

### Embed Badge

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

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

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

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

8351.6M87](/packages/propel-propel1)[mrjgreen/db-sync

Efficient MySQL comparison and sync utility

29338.7k](/packages/mrjgreen-db-sync)[joegreen0991/db-sync

Efficient MySQL comparison and sync utility

2941.7k](/packages/joegreen0991-db-sync)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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