Skip to content

tkachikov/code-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code generator

Memory release: 1.1 License: MIT

This package generate approved codes. Example: 1224, 456678, etc.

Installation

composer require tkachikov/code-generator

Usage

Code generate for length 4

$code = CodeGenerator::get(4); // 0123

Code generate for length 6

$code = CodeGenerator::get(6); // 123456

Equal codes

$hasCode = '0123';
$requestCode = 123;
$equal = CodeGenerator::equals($hasCode, $requestCode); // true

License

This package is open-sourced software licensed under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages