acelords/keygen

A fluent PHP random key generator.

This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.

Maintainers

👁 SyntaxLexx

Package info

github.com/acelords/keygen-php

pkg:composer/acelords/keygen

Statistics

Installs: 392

Dependents: 0

Suggesters: 0

Stars: 0

2.0.2 2020-07-30 19:54 UTC

Requires

  • php: >=5.4.0

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 54a0d0a2dbe2e89fe9894b4a5ee66920914047cd

generatorphprandomkeykeygenkey generatoracelordslexxyungcarter

This package is auto-updated.

Last update: 2024-12-22 20:52:53 UTC


README

A fluent PHP random key generator.

👁 Packagist
👁 Packagist
👁 Packagist

Keygen is a PHP package that generates random character sequences known as keys. The package ships with built-in key generators for four key types namely: numeric, alphanumeric, token and byte. Its implementation effectively combines simplicity and expressiveness.

Installation

With Composer

The Keygen package can be installed easily with [Composer] - require the acelords/keygen package from the command line.

$ composer require acelords/keygen

Alternatively, you can manually add the Keygen package to the composer.json file of your project and then run composer install from the command line as follows:

{
 "require": {
 "acelords/keygen": "^2.0"
 }
}
$ composer install

You can use it in your PHP code like this:

<?php

require __DIR__ . '/vendor/autoload.php';
use Keygen\Keygen;

printf("Your appID is %.0f", Keygen::numeric(12)->generate()); // Your appID is 878234290135

Usage and Documentation

Todos

  • Write tests

License

The Keygen package is covered by the MIT License.