PHPackages                             bvfbarten/f3-model - 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. [Framework](/categories/framework)
4. /
5. bvfbarten/f3-model

ActiveLibrary[Framework](/categories/framework)

bvfbarten/f3-model
==================

Simple model class for f3 framework

0.4(3y ago)054PHP

Since Apr 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bvfbarten/f3-model)[ Packagist](https://packagist.org/packages/bvfbarten/f3-model)[ RSS](/packages/bvfbarten-f3-model/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (4)Dependencies (1)Versions (7)Used By (0)

F3 Model
--------

[](#f3-model)

F3 Model strives to create lazy loading relations the fatfree way. It comes with four functions to add to the mapper object.

```
class UserGroup extends F3Model {
    public $_db = 'db';
    public $_table = 'user_group';
    public function relations() {
        return [
            'User' => [
                "User",
                ['id = ?', $this->user_id]
            ],
            'Group' => [
                "Group",
                ['id = ?', $this->group_id]
            ],
            'NotFamily' => [
                "Group",
                ['id != ? and name = ?', 3, 'family']
            ],
        ];
    }
}

$userGroup = new UserGroup;
$user = $userGroup->loadRelation('User');

```

function findRelation($key, $where, $args) { }

returns array of NotFamily relationship

$where, gives ability to add additional where parameters to related table in same fashion as f3

$args, allows overriding $args given in initial relations function

function loadRelation($key, $where, $args) { }

returns a single object of NotFamily

function countRelation($key, $where, $args) { }

returns a count of NotFamily

function combineFilter($filter, $filter1) { } returns an f3 filter combining $filter and $filter1

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Recently: every ~159 days

Total

6

Last Release

1251d ago

### Community

Maintainers

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

---

Top Contributors

[![bvfbarten](https://avatars.githubusercontent.com/u/8053347?v=4)](https://github.com/bvfbarten "bvfbarten (13 commits)")

### Embed Badge

![Health badge](/badges/bvfbarten-f3-model/health.svg)

```
[![Health](https://phpackages.com/badges/bvfbarten-f3-model/health.svg)](https://phpackages.com/packages/bvfbarten-f3-model)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M296](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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