PHPackages                             michalsn/codeigniter-nested-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. michalsn/codeigniter-nested-model

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

michalsn/codeigniter-nested-model
=================================

Model relations for CodeIgniter 4 framework

v1.3.0(1w ago)272565[2 issues](https://github.com/michalsn/codeigniter-nested-model/issues)MITPHPPHP ^8.2CI passing

Since Dec 30Pushed 1w ago6 watchersCompare

[ Source](https://github.com/michalsn/codeigniter-nested-model)[ Packagist](https://packagist.org/packages/michalsn/codeigniter-nested-model)[ Docs](https://github.com/michalsn/codeigniter-nested-model)[ RSS](/packages/michalsn-codeigniter-nested-model/feed)WikiDiscussions develop Synced today

READMEChangelog (4)Dependencies (2)Versions (10)Used By (0)

CodeIgniter Nested Model
========================

[](#codeigniter-nested-model)

A simple model relations for CodeIgniter 4 framework.

Note

Consider switching to [CodeIgniter Relations](https://github.com/michalsn/codeigniter-relations) package - especially if you're starting a new project.

[![PHPUnit](https://github.com/michalsn/codeigniter-nested-model/actions/workflows/phpunit.yml/badge.svg)](https://github.com/michalsn/codeigniter-nested-model/actions/workflows/phpunit.yml)[![PHPStan](https://github.com/michalsn/codeigniter-nested-model/actions/workflows/phpstan.yml/badge.svg)](https://github.com/michalsn/codeigniter-nested-model/actions/workflows/phpstan.yml)[![Deptrac](https://github.com/michalsn/codeigniter-nested-model/actions/workflows/deptrac.yml/badge.svg)](https://github.com/michalsn/codeigniter-nested-model/actions/workflows/deptrac.yml)[![Coverage Status](https://camo.githubusercontent.com/d626788181eaf9c9250ae8cd6c8706b44432b91bca22aca50682c36f4fa63caa/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d696368616c736e2f636f646569676e697465722d6e65737465642d6d6f64656c2f62616467652e7376673f6272616e63683d646576656c6f70)](https://coveralls.io/github/michalsn/codeigniter-nested-model?branch=develop)

[![PHP](https://camo.githubusercontent.com/b5d4f7901c58ad1ddfff679966f426cc25a9354bab763846b9a7276c2feab4e0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d626c7565)](https://camo.githubusercontent.com/b5d4f7901c58ad1ddfff679966f426cc25a9354bab763846b9a7276c2feab4e0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e322d626c7565)[![CodeIgniter](https://camo.githubusercontent.com/ce252dce29520219a29abfe1c6b920c78f73e0f142b37233dbf19776c3d0aab7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f646549676e697465722d253545342e352d626c7565)](https://camo.githubusercontent.com/ce252dce29520219a29abfe1c6b920c78f73e0f142b37233dbf19776c3d0aab7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f646549676e697465722d253545342e352d626c7565)

Installation
------------

[](#installation)

```
composer require michalsn/codeigniter-nested-model

```

Docs
----

[](#docs)

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance96

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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 ~145 days

Total

4

Last Release

11d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/459185?v=4)[Michal Sniatala](/maintainers/michalsn)[@michalsn](https://github.com/michalsn)

---

Top Contributors

[![michalsn](https://avatars.githubusercontent.com/u/459185?v=4)](https://github.com/michalsn "michalsn (40 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (6 commits)")[![neznaika0](https://avatars.githubusercontent.com/u/17183530?v=4)](https://github.com/neznaika0 "neznaika0 (2 commits)")

---

Tags

codeignitercodeigniter4database-relationsmodelphp82relationscodeignitermodelrelationscodeigniter4

### Embed Badge

![Health badge](/badges/michalsn-codeigniter-nested-model/health.svg)

```
[![Health](https://phpackages.com/badges/michalsn-codeigniter-nested-model/health.svg)](https://phpackages.com/packages/michalsn-codeigniter-nested-model)
```

###  Alternatives

[tatter/relations

Entity relationships for CodeIgniter 4

9021.6k](/packages/tatter-relations)[yidas/codeigniter-model

CodeIgniter 3 ORM Base Model pattern with My\_model example

17012.0k2](/packages/yidas-codeigniter-model)[czim/laravel-nestedupdater

Eloquent model updater for nested relations data for Laravel.

1951.7k2](/packages/czim-laravel-nestedupdater)[tatter/schemas

Database schema management, for CodeIgniter 4

2627.8k1](/packages/tatter-schemas)

PHPackages © 2026

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