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

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

soneritics/database
===================

Soneritics Database framework for PHP 5.5 and higher.

1.3.4(4y ago)01501MITPHPPHP &gt;=5.5.0

Since Oct 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Soneritics/Database)[ Packagist](https://packagist.org/packages/soneritics/database)[ Docs](http://database.soneritics.nl/)[ RSS](/packages/soneritics-database/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (3)Versions (11)Used By (1)

Soneritics Database
===================

[](#soneritics-database)

[![Build Status](https://camo.githubusercontent.com/cf9b935c8a98274636fa71ccbf060c39c73b2138237bc43b418560e2b44cced8/68747470733a2f2f6170692e7472617669732d63692e6f72672f536f6e657269746963732f44617461626173652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Soneritics/Database)[![Coverage Status](https://camo.githubusercontent.com/b16f597bcc021d65e68ae7d9d84066cf51179a3f8dc048460dbec80a3caf9a3c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f536f6e657269746963732f44617461626173652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/Soneritics/Database?branch=master)[![License](https://camo.githubusercontent.com/505fe3a551fc6e64816f64cee81471b04e7ef943170e4f994c249982b3fd4290/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](https://camo.githubusercontent.com/505fe3a551fc6e64816f64cee81471b04e7ef943170e4f994c249982b3fd4290/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)

by

- [@Soneritics](https://github.com/Soneritics) - Jordi Jolink

Introduction
------------

[](#introduction)

> Soon..

Minimum Requirements
--------------------

[](#minimum-requirements)

- PHP 5.5+
- PDO driver for your respective database (atm only MySQL is supported)

Supported Databases
-------------------

[](#supported-databases)

- MySQL

Features
--------

[](#features)

- Much

### Database querying

[](#database-querying)

Database querying is very easy. A few examples can be found in the code below.

```
// Define the tables we have as Table extends
class Father extends Table {}
class Mother extends Table {}
class Child extends Table {}

// Use the Child table as a base for the queries
$child = new Child;

// Select everything from the children table
$child
    ->select()
    ->execute();

// Join a child with it's parents
$child
    ->select()
    ->leftJoin(new Father, 'Father.id = father_id')
    ->leftJoin(new Mother, 'Mother.id = mother_id')
    ->execute();

// A new child has been born!
$child
    ->insert()
    ->values([
        'firstname' => 'first name',
        'lastname' => 'last name',
        'father_id' => 1,
        'mother_id' => 1
    ])
    ->execute();

// Typo in the baby's name :-)
$child
    ->update()
    ->set('firstname', 'new first name')
    ->where([
        'firstname' => 'first name',
        'lastname' => 'last name'
    ])
    ->execute();

// Typo in the first and lastname of the baby :O
$child
    ->update()
    ->set(['firstname' => 'new first name', 'lastname' => 'new last name'])
    ->where([
        'firstname' => 'first name',
        'lastname' => 'last name'
    ])
    ->execute();

// Selecting with some sorting and limiting
$child
    ->select()
    ->leftJoin(new Father, 'Father.id = father_id')
    ->leftJoin(new Mother, 'Mother.id = mother_id')
    ->orderAsc('lastname')
    ->orderAsc('firstname')
    ->limit(25)
    ->execute();
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~257 days

Recently: every ~399 days

Total

10

Last Release

1592d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3717850?v=4)[Jordi Jolink](/maintainers/soneritics)[@Soneritics](https://github.com/Soneritics)

---

Top Contributors

[![Soneritics](https://avatars.githubusercontent.com/u/3717850?v=4)](https://github.com/Soneritics "Soneritics (17 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/soneritics-database/health.svg)](https://phpackages.com/packages/soneritics-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)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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