PHPackages                             hylianshield/key-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. hylianshield/key-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hylianshield/key-generator
==========================

Generate serials / API keys.

1.0.1(9y ago)55.6k2Apache-2.0PHPPHP ^7.0

Since Jan 29Pushed 7y ago2 watchersCompare

[ Source](https://github.com/HylianShield/key-generator)[ Packagist](https://packagist.org/packages/hylianshield/key-generator)[ RSS](/packages/hylianshield-key-generator/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Introduction
============

[](#introduction)

Generate, encode and decode serials and API keys.

Installation
============

[](#installation)

```
composer require hylianshield/key-generator:^1.0.0
```

Command line
============

[](#command-line)

CommandAliasUsageDescription`bin/generate-key``composer generate-key``generate-key []`Generate an API key with the supplied number of groups.`bin/encode-key``composer encode-key``encode-key [, ...]`Encode a key for the given list of numbers.`bin/decode-key``composer decode-key``decode-key `Decode the given key into a numerical sequence.To see a complete result of the described functionality, try the following:

```
composer encode-key $(composer decode-key $(composer generate-key))
```

The output will be similar to:

```
> ./bin/generate-key
> ./bin/decode-key 'EF0M508N-FZ78BSC1-GJRJKQTG-K01FGZ7Z-KQK2F81H'
> ./bin/encode-key '497163600149' '548925728129' '569907994448' '652884868351' '678171222065'
EF0M508N-FZ78BSC1-GJRJKQTG-K01FGZ7Z-KQK2F81H

```

Usage
=====

[](#usage)

```
