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

ActiveLibrary

bubu-framework/database
=======================

Database communication (bubu framework)

V1.2.7(2y ago)070[1 issues](https://github.com/bubu-framework/database/issues)3MITPHPPHP &gt;=7.4

Since Oct 2Pushed 2y agoCompare

[ Source](https://github.com/bubu-framework/database)[ Packagist](https://packagist.org/packages/bubu-framework/database)[ Docs](https://github.com/bubu-framework/database)[ RSS](/packages/bubu-framework-database/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (21)Used By (3)

Database library (bubu framework)
=================================

[](#database-library-bubu-framework)

Installation with composer
--------------------------

[](#installation-with-composer)

```
$ composer require bubu-framework/database
```

### Configuration

[](#configuration)

Follow .env.example syntaxe

Usage
-----

[](#usage)

---

### Create table

[](#create-table)

Call Database CreateTable const for create table, setup him and call execute function for create the table. Call addColumn method for create a column and add to table.

- *Example*:

    ```
    Database::createTable('test')->addColumn(
        Database::createColumn('col1')
        ->type(CreateColumn::INT)
        ->size(10)
        ->defaultValue(30)
        ->comments("It's ok")
        ->notNull()
        )
        ->addColumn(
            Database::createColumn('id')
                ->type(CreateColumn::INT)
                ->size(11)
                ->autoIncrement()
        )
        ->addIndex([
            'type' => 'primary',
            'columns' => ['id'],
            'name' => 'primaryKey'
        ])
        ->addIndex([
            'type' => CreateTable::UNIQUE_INDEX,
            'columns' => ['col1', 'id'],
            'name' => 'uniqueKey'
        ])
        ->execute();
    ```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

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

Every ~31 days

Recently: every ~73 days

Total

20

Last Release

1094d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a8fb869b0492caf9aef71c62e378b2dd09e6d07da959dc1a5e2dbe3a8cb403ec?d=identicon)[Quentin\_bubu](/maintainers/Quentin_bubu)

---

Top Contributors

[![QuentinBubu](https://avatars.githubusercontent.com/u/60854021?v=4)](https://github.com/QuentinBubu "QuentinBubu (32 commits)")

### Embed Badge

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

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

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[bacula-web/bacula-web

The open source web based reporting and monitoring tool for Bacula

1537.5k](/packages/bacula-web-bacula-web)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[doppar/framework

The Doppar Framework

366.7k8](/packages/doppar-framework)[hardcastle/xrpl_php

PHP SDK / Client for the XRP Ledger

129.7k5](/packages/hardcastle-xrpl-php)

PHPackages © 2026

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