Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.79 KB

README.md

File metadata and controls

58 lines (39 loc) · 1.79 KB

Testament

GitHub Workflow Status (master) Total Downloads Latest Version License


A UI & DB agnostic PHP package for code generation and verification. It only aims on providing an API for generating cryptographic codes and verifying between two given codes elegantly.

Requires PHP 8.3+

Installation

You can install the package via composer:

composer require codelabmw/testament

Usage

<?php

use Codelabmw\Testament\Testament;

$alpha = Testament::alpha(length: 8);
$numeric = Testament::numeric(length: 6);
$alphaNumeric = Testament::alphaNumeric(/* Length defaults to 6 */);
$password = Testament::password(/* Length defaults to 8 */);

Testing

composer test

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Credits

License

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