PHPackages                             lagan/property-manytoone - 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. lagan/property-manytoone

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

lagan/property-manytoone
========================

Controller for the Lagan many-to-one property. Lets the user define a may-to-one relation between two content objects.

v1.0.0(10y ago)07761MITPHPPHP &gt;=5.5.0

Since May 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/lutsen/property-manytoone)[ Packagist](https://packagist.org/packages/lagan/property-manytoone)[ RSS](/packages/lagan-property-manytoone/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)DependenciesVersions (4)Used By (1)

[![Lagan](https://camo.githubusercontent.com/f15c7f77d6c4711b4863d681c4d5b83f0579933b0c85cf1e341613bf3a7f0b18/68747470733a2f2f63646e2e7261776769742e636f6d2f6c757473656e2f6c6167616e2f6d61737465722f6c6167616e2d6c6f676f2e737667)](https://github.com/lutsen/lagan)

Lagan Many-to-one Property Controller
=====================================

[](#lagan-many-to-one-property-controller)

Controller for the Lagan many-to-one property.
Lets the user define a may-to-one relation between two content objects.

The Manytoone property type controller enables a many-to-one relation between 2 Lagan models, as described here: [http://redbeanphp.com/index.php?p=/many\_to\_one](http://redbeanphp.com/index.php?p=/many_to_one). The name of the property should be the name of the Lagan model this model can have a many-to-one relation with. For this to work properly the other model should have a one-to-many relation with this model. So in our example in the Lagan project the Lagan Crew model has a many-to-one relation with the Lagan Hoverkraft model, and the Lagan Hoverkraft model has a one-to-many relation with the Lagan Crew model.

A property type controller can contain a set, read, delete and options method. All methods are optional.

To be used with [Lagan](https://github.com/lutsen/lagan). Lagan lets you create flexible content objects with a simple class, and manage them with a web interface.

Lagan is a project of [Lútsen Stellingwerff](http://lutsen.net/).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

3698d ago

Major Versions

v0.1.1 → v1.0.02016-05-15

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1068123?v=4)[Lútsen Stellingwerff](/maintainers/lutsen)[@lutsen](https://github.com/lutsen)

---

Tags

laganphppropertycontrollerrelationlaganmany-to-one

### Embed Badge

![Health badge](/badges/lagan-property-manytoone/health.svg)

```
[![Health](https://phpackages.com/badges/lagan-property-manytoone/health.svg)](https://phpackages.com/packages/lagan-property-manytoone)
```

###  Alternatives

[symfony/property-info

Extracts information about PHP class' properties using metadata of popular sources

2.2k270.7M1.1k](/packages/symfony-property-info)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2111.2M16](/packages/reedware-laravel-relation-joins)[biiiiiigmonster/hasin

Laravel framework relation has in implement

154578.1k](/packages/biiiiiigmonster-hasin)[dcat/laravel-wherehasin

Laravel ORM whereHasIn

247159.4k5](/packages/dcat-laravel-wherehasin)[mootensai/yii2-relation-trait

Yii 2 Models load with relation, &amp; transaction save with relation

47229.1k9](/packages/mootensai-yii2-relation-trait)[reedware/laravel-composite-relations

Adds the ability define composite eloquent relations.

22147.5k](/packages/reedware-laravel-composite-relations)

PHPackages © 2026

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