Skip to content
This repository has been archived by the owner on Aug 29, 2021. It is now read-only.

andrerei/ProductKeyGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ProductKeyGenerator

ProductKeyGenerator is a useful class to generate product keys.

Installation

Just require the class.:

<?php

require_once 'src/ProductKeyGenerator.php';

You're done.

Usage

Create a new ProductKeyGenerator object.

$key=new ProductKeyGenerator();

Then you can generate a key (a-z)

$key->key('****-****-****-****');
// GAMJ-HQVK-TWXD-XOIB

or (0-9)

$key->key('....-....-....-....');
// 8499-1345-0397-0109

or (a-z and 0-9)

$key->key('+++-+++-+++');
// GCW-EH3-083

Change to lowercase

By default the key is generated uppercase, to change to lowercase:

$key->uppercase(false);

Add standard characters

$key->key('ABC2-****-****-****');
// ABC2-TTXO-JHCP-JWFK

$key->key('****-**B*-*888');
// KBQQ-GKBX-E888

About

A useful class to generate product keys.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages