lagan/property-hashid
Controller for the Lagan hashid property.
Maintainers
Requires
- php: >=5.6.0
- hashids/hashids: ^2.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 8a163cf3886dabd1c03c0dbe298218adf36b7bd6
- Lútsen Stellingwerff <lutsenstellingwerff.woop@gmail.com>
This package is auto-updated.
Last update: 2026-06-29 01:06:02 UTC
README
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. 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. 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.
