eneye/generate-string

This package help to generate unique random strings base on the length provided and the character types.

1.0 2021-02-14 23:24 UTC

This package is auto-updated.

Last update: 2025-06-12 00:01:52 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

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

Contact Creator

alt text alt text