2017 © Pedro PelĂĄez
 

library property-hashid

Controller for the Lagan hashid property.

image

lagan/property-hashid

Controller for the Lagan hashid property.

  • Monday, January 29, 2018
  • by lutsen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 112 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

Lagan, (*1)

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., (*2)

Example:, (*3)

[
    '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., (*4)

Lagan is a project of LĂștsen Stellingwerff., (*5)

The Versions

29/01 2018

dev-master

9999999-dev

Controller for the Lagan hashid property.

  Sources   Download

MIT

The Requires

 

controller property lagan hasid hasids

16/01 2017

v1.0.0

1.0.0.0

Controller for the Lagan hashid property.

  Sources   Download

MIT

The Requires

 

controller property lagan hasid hasids