PHPackages                             lagan/template-optionselect - 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. [Templating &amp; Views](/categories/templating)
4. /
5. lagan/template-optionselect

ActiveLagan-template[Templating &amp; Views](/categories/templating)

lagan/template-optionselect
===========================

Template to use a fixed array of options with the Lagan String property.

v1.0.0(8y ago)077MITHTML

Since Oct 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/lutsen/template-optionselect)[ Packagist](https://packagist.org/packages/lagan/template-optionselect)[ RSS](/packages/lagan-template-optionselect/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

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

Lagan Properties Optionselect Template
======================================

[](#lagan-properties-optionselect-template)

Admin template to use a fixed array of options with the Lagan String property. You define options in the properties of a model like this:

```
'options' => [
	'option_a' => [ 'name' => 'Option A' ],
	'option_b' => [ 'name' => 'Option B' ]
]
```

You can set the validation rule in the String property like this:

```
'validate' => 'inlist({"list": {"0":"option_a", "1":"option_b"}})'
```

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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3144d ago

### Community

Maintainers

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

---

Tags

lagantemplatepropertylaganoptionselect

### Embed Badge

![Health badge](/badges/lagan-template-optionselect/health.svg)

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

###  Alternatives

[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.5k34.7M186](/packages/phpoffice-phpword)[rize/uri-template

PHP URI Template (RFC 6570) supports both expansion &amp; extraction

420137.3M46](/packages/rize-uri-template)

PHPackages © 2026

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