codelabmw / testament
A UI & DB agnostic PHP package for code generation and verification.
Fund package maintenance!
codelabmw
Requires
- php: ^8.3.0
Requires (Dev)
- laravel/pint: ^1.19.0
- pestphp/pest: ^3.7.1
- pestphp/pest-plugin-type-coverage: ^3.2.3
- phpstan/phpstan: ^1.12.13
- rector/rector: ^1.2.10
- symfony/var-dumper: ^7.2.0
This package is auto-updated.
Last update: 2025-02-22 10:23:59 UTC
README
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.