PHPackages                             lagan/property-objectlink - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lagan/property-objectlink

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lagan/property-objectlink
=========================

Controller for the Lagan objectlink property. Links to any object in the database and returns the object.

v1.0.1(9y ago)056MITPHPPHP &gt;=5.5.0

Since Feb 8Pushed 8y ago1 watchersCompare

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

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

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

Lagan Objectlink Property Controller
====================================

[](#lagan-objectlink-property-controller)

Controller for the Lagan Objectlink property.
Can link an object to any object of any type in the database. The object is specified by it's type and id. If id == false, all objects of this type are linked. In the Lagan model an array needs to be defined with the object types that can be linked to. In this array the type of object models that can be used are the keys, and the type of link are the values. Linktype can be "single" to only link to singel objects, "group" to only link to the entire group of objects, and "all" to link to both.

Example:

```
[
	'name' => 'object',
	'description' => 'Content object',
	'type' => '\Lagan\Property\Objectlink',
	'input' => 'objectlink',
	'models' => [
		'Content' => 'single',
		'Genre' => 'group',
		'Employee' => 'group',
		'Publication' => 'all'
	]
]
```

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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

3377d ago

### Community

Maintainers

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

---

Tags

laganphplinkobjectpropertycontrollerlagan

### Embed Badge

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

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

###  Alternatives

[symfony/property-access

Provides functions to read and write from/to an object or array using a simple string notation

2.8k295.3M2.5k](/packages/symfony-property-access)[myclabs/deep-copy

Create deep copies (clones) of your objects

8.9k849.8M169](/packages/myclabs-deep-copy)[cuyz/valinor

Dependency free PHP library that helps to map any input into a strongly-typed structure.

1.5k9.2M108](/packages/cuyz-valinor)

PHPackages © 2026

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