pxgamer/mnemonics-php

A mnemonics generator for PHP 7.2+

v1.0.1 2019-01-25 10:16 UTC

README

Latest Version on Packagist Software License Build Status Style CI Code Coverage Total Downloads

A mnemonics generator for PHP 7.2+

Install

Via Composer

$ composer require pxgamer/mnemonics-php

Usage

Convert a string to a mnemonic

$mnemonicGenerator = new Mnemonic(DefaultWordList::WORDS);
$mnemonicGenerator->toMnemonic('...');

Convert a mnemonic to a string

$mnemonicGenerator = new Mnemonic(DefaultWordList::WORDS);
$mnemonicGenerator->toEntropy(['...', '...']);

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email security@pxgamer.xyz instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.