eneye / generate-string
This package help to generate unique random strings base on the length provided and the character types.
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/eneye/generate-string
This package is auto-updated.
Last update: 2025-12-12 01:13:38 UTC
README
Description
This library is written in PHP(PHP 7+) and it helps to generate random unique strings by providing the length and the character types e.g length = 8 and characters = "abcd123" eight-length of strings will be randomly generated from that character
Install via "composer require"
composer require eneye/generate-string
Requirements and Recommendations
No extensions are required to run this library. This library can be used to generate unique strings for users where necessary.
Usage
use EneyeGenerateString\Generate; require_once __DIR__ . '/vendor/autoload.php'; $generate = new Generate(); $length = 5; $characters = "eneye12345"; $output = $generate->generateString($length, $characters ); // This $output will be unique generate strings with 5 characters