Skip to content

Pervanovo/CockpitUniqueIdField

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CockpitUniqueIdField

Addon to agentejo/Cockpit with a field type that is initialized with a generated hexadecimal unique id.

The generated id is unique across the same field on the same collection.

Requirements

Requires either random_bytes or openssl_random_pseudo_bytes functions in PHP.

Installation

Clone this repo into addon/CockpitUniqueIdField in your cockpit root directory.

Options

length (default: 8) Sets the length of the generated unique id.

Unique id function implementation

The implementation is stolen from https://www.php.net/manual/en/function.uniqid.php#120123

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages