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

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

lagan/property-hashid
=====================

Controller for the Lagan hashid property.

v1.0.0(9y ago)06492MITPHPPHP &gt;=5.6.0

Since Jan 16Pushed 8y ago1 watchersCompare

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

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

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

Lagan Hashid Property Controller
================================

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

Controller for the Lagan Hashid property.
Generate YouTube-like ids based on the conten object id's. Use it when you don't want to expose your database ids to the user. A Hashid is only set on creation of the content object and cannot be edited. Uses the [Hashids PHP library](http://hashids.org/php/). Optionally a salt, padding and alphabet for the Hasid can be set in the property array.
Salt will make the id's unique for that salt.
Padding sets the length of the id.
Alphabet defines the characters that can be used for the id, with a minimum of 16 characters.

Example:

```
[
	'name' => 'uid',
	'description' => 'U.I.D.',
	'autovalue' => true,
	'salt' => 'some salt to make the hasid unique',
	'padding' => 10,
	'alphabet' => 'abcdefghABCDEFGH',
	'type' => '\Lagan\Property\Hashid',
	'input' => 'readonly'
]
```

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

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3404d ago

### Community

Maintainers

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

---

Tags

hashidslaganphppropertycontrollerlaganhasidhasids

### Embed Badge

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

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

###  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)

PHPackages © 2026

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