Skip to content

Repository files navigation

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.

About

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

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

Sponsor this project

Packages

Contributors

Languages