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

ActiveLibrary[Framework](/categories/framework)

michalsn/codeigniter-relations
==============================

A powerful library that brings relationship management to CodeIgniter 4 framework

193.9k↑241.7%1[1 issues](https://github.com/michalsn/codeigniter-relations/issues)PHPCI passing

Since Jun 4Pushed 4w ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

CodeIgniter Relations
=====================

[](#codeigniter-relations)

A powerful package that adds seamless **relationship management** to CodeIgniter 4, with a clean, object-oriented API for handling complex database relationships.

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

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

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

[](#installation)

```
composer require michalsn/codeigniter-relations

```

Docs
----

[](#docs)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance61

Regular maintenance activity

Popularity33

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 Bus Factor1

Top contributor holds 95.8% 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://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 (23 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

codeignitercodeigniter4database-relationsrelations

### Embed Badge

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

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

###  Alternatives

[laravel/dusk

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

1.9k39.6M298](/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)
