openlss / func-gen
Random generation functions
Installs: 127
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/openlss/func-gen
Requires
- php: >=5.3.2
Requires (Dev)
- openlss/core-boot: ~0.0.1
This package is not auto-updated.
Last update: 2025-09-27 19:06:35 UTC
README
Generation functions: handles, uuid, etc
Usage
$guid = gen_guid(); $handle = gen_handle();
Reference
(string) gen_guid()
Returns a GUID using either the preferred extension or a pure PHP implementation
(string) gen_handle($len=6)
Returns an alphanumeric case senstive handle for use as an ID
- $len Length of the handle
Typically this would be used to generate pseudo-random identifiers with code like this
do { $handle = gen_handle(); } while(handleExists($handle));