andacu/keygen

Key Generator Library

Maintainers

Details

github.com/andacu/kegen

Source

Issues

Installs: 55

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

pkg:composer/andacu/keygen

dev-master / 1.0.x-dev 2015-06-06 11:10 UTC

This package is not auto-updated.

Last update: 2025-12-20 23:40:54 UTC


README

Generate Random keys based from a pattern of string

Usage

<?php

$keygen = new Keygen\Utility\Generator\KeyGenerator('0123456789abcdefghijklmnopqrstuvwxyz');
$csvOutput = new Keygen\Utility\Output\CsvOutput(__DIR__);

// Generate 10000 9 digit unique keys based from the default pattern 
// string '0123456789abcdefghijklmnopqrstuvwxyz'
// the result keys will also be written to a csv file using 
// the CsvOutput handler
$keys = $keygen->generateUniqueKeys(9, 10000, $csvOutput);

print_r $keys;