PHPackages                             triplei/c5\_base\_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. [Database &amp; ORM](/categories/database)
4. /
5. triplei/c5\_base\_model

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

triplei/c5\_base\_model
=======================

A base model class for interacting with the database

1.0.1(9y ago)118MITPHPPHP &gt;=5.4.0

Since Feb 20Pushed 9y ago2 watchersCompare

[ Source](https://github.com/triplei/c5_base_model)[ Packagist](https://packagist.org/packages/triplei/c5_base_model)[ RSS](/packages/triplei-c5-base-model/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

c5\_base\_model
===============

[](#c5_base_model)

A base model with some helpful functionality for interacting with database records in concrete5 7+

basic usage:

```
use TripleI\C5BaseModel\BaseModel

class Widget extends BaseModel
{
    /**
     * @var string
     * @Column(type="string", nullable=true)
     */
    protected $name;

    /**
     * @var string
     * @Column(type="text", nullable=true)
     */
    protected $description;
}

$widget = new Widget();
$widget->name = 'testing';
$widget->save();

$widget2 = new Widget();
$widget->setData(
    [
        'name' => 'widget name',
        'description' => 'description here'
    ]
);
$widget->save();

$allWidgets = Widget::getAll();

$oddWidgets = Widget::loadByIDs([1, 3, 5]);

$singleWidget = Widget::getByID(1);
$singleWidget->destroy();
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

3367d ago

Major Versions

0.0.1 → 1.0.02017-02-20

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

concrete5concrete5

### Embed Badge

![Health badge](/badges/triplei-c5-base-model/health.svg)

```
[![Health](https://phpackages.com/badges/triplei-c5-base-model/health.svg)](https://phpackages.com/packages/triplei-c5-base-model)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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