PHPackages                             symphlion/bookworm - 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. symphlion/bookworm

ActiveLibrary

symphlion/bookworm
==================

A small ORM library written in PHP

024PHP

Since Jun 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Symphlion/Bookworm)[ Packagist](https://packagist.org/packages/symphlion/bookworm)[ RSS](/packages/symphlion-bookworm/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Bookworm
========

[](#bookworm)

A small ORM library written in PHP

---

A small use case:

```
// register your database to the pool and name it
\Bookworm\Pool::createConnection('default', [
    'port' => 3306,
    'driver' => 'mysql',
    'host' => 'localhost',
    'username' => 'your-username',
    'password' => 'your-secret-password',
    'database' => 'your-database'
]);

use \Bookworm\Model;

// the name of the class you`re using correlates to a corresponding table
class User extends Model {
    // this is all that is required for a normal model
}

// if however, you want to name the table yourself, you can do so like this
class MyLovelyPeople extends Model {
    protected $table = "my_users";
}

// to use it, simply get a model by it`s primary ID
$user = MyLovelyPeople::find(1);

// or alternatively
$fred = User::where("username", "=", "fred")->get();

// if you have a primary field which isn`t named id, you can define it as such

class Preferences extends Model {
    protected $primary = 'preference_id';
}

// and now you can use it like previously
$preferences = Preferences::find(1);

// if you want to retrieve a collection of types, you can use

// retrieves all users ( note that it has a limit of a 100, to override, simply
// add your own number of records to retrieve )
$users = User::all();

// to selectively retrieve a collection of items
$authorized_users = User::where('authorization', '>=', 3)->all();
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b7340bfb8c5a668b19d17a30f8a7e85a6f1c20c091f86cdc77a5ef10f80343f?d=identicon)[Symphlion](/maintainers/Symphlion)

---

Top Contributors

[![Symphlion](https://avatars.githubusercontent.com/u/1037139?v=4)](https://github.com/Symphlion "Symphlion (5 commits)")

### Embed Badge

![Health badge](/badges/symphlion-bookworm/health.svg)

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

PHPackages © 2026

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