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

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

solve/database
==============

Database engine

v2.0.19(10y ago)02571MITPHPPHP &gt;=5.3.0

Since Oct 19Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Solve/Database)[ Packagist](https://packagist.org/packages/solve/database)[ Docs](http://github.com/Solve/Database)[ RSS](/packages/solve-database/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (5)Versions (51)Used By (1)

Database
========

[](#database)

Database component for Solve framework

**Already done:**

```
QC
MysqlDBAdaptor
DBOperator
ModelOperator
ModelStructure

Model
ModelCollection
ModelRelation

SlugAbility
TranslateAbility
FilesAbility (+thumbnails)

Validation

```

**Need to be realized**

> SortAbility TimeTrackAbility TreeAbility HistoryAbility DynamicAbility

> Paginator

### Sample model structure

[](#sample-model-structure)

**Brand:**

```
table: brands
columns:
  id:
    type: 'int(11) unsigned'
    auto_increment: true
  title:
    type: varchar(255)
indexes:
  primary:
    columns:
      - id
relations:
  products: {  }
# here we have autodetect for model, for relation type and related field names
```

**Category:**

```
table: categories
columns:
  id:
    type: 'int(11) unsigned'
    auto_increment: true
  title:
    type: varchar(255)
indexes:
  primary:
    columns:
      - id
relations:
  products: {  }
```

**Product:**

```
table: products
columns:
  id:
    type: 'int(11) unsigned'
    auto_increment: true
  title:
    type: varchar(255)
  id_brand:
    type: 'int(11) unsigned'
indexes:
  primary:
    columns:
      - id
relations:
  brand: {  }
  categories: {  }
```

**Simple Operations:**

```
$product = Product::loadOne(1);
$product->title = 'Macbook air';
$product->save();

$product = new Product();
$product->title = 'Macbook pro'
$product->save();

$list = Product::loadList(QC::create()->where('id < :d', 3));
//$list->loadRelated('brand'); - optional
echo $list->getFirst()->brand->id;
$list->getFirst()->setRelatedBrand(1); // set related by id
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 98.1% 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 ~5 days

Total

50

Last Release

3955d ago

Major Versions

v1.0.28 → v2.0.22015-06-11

v1.0.29 → v2.02015-06-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9a7aeaad78abc0aa0445550a50397344caa6f27120403da89fda2567edac203?d=identicon)[mounter](/maintainers/mounter)

---

Top Contributors

[![viniychuk](https://avatars.githubusercontent.com/u/1412341?v=4)](https://github.com/viniychuk "viniychuk (53 commits)")[![SerzhYevtushenko](https://avatars.githubusercontent.com/u/5663785?v=4)](https://github.com/SerzhYevtushenko "SerzhYevtushenko (1 commits)")

---

Tags

databaseormpdodbsolve

### Embed Badge

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

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

###  Alternatives

[dbout/wp-orm

WordPress ORM with Eloquent.

1279.6k1](/packages/dbout-wp-orm)[bephp/activerecord

micro activerecord library in PHP(only 400 lines with comments), support chain calls and relations(HAS\_ONE, HAS\_MANY, BELONGS\_TO).

1202.1k2](/packages/bephp-activerecord)[flightphp/active-record

Micro Active Record library in PHP, support chain calls, events, and relations.

163.0k](/packages/flightphp-active-record)

PHPackages © 2026

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