merkeleon / php-cryptocurrency-address-validation
Cryptocurrency address validation. Currently supports litecoin and bitcoin.
Installs: 310 258
Dependents: 0
Suggesters: 0
Security: 0
Stars: 19
Watchers: 3
Forks: 49
pkg:composer/merkeleon/php-cryptocurrency-address-validation
Requires
- php: ^8.2
- ext-bcmath: *
- ext-gmp: *
- laravel/framework: >=v7.0.0|>=v10.0.0
- spomky-labs/cbor-php: ^3.0
Requires (Dev)
- phpunit/phpunit: ~8.0
README
Easy to use PHP Bitcoin and Litecoin address validator. One day I will add other crypto currencies. Or how about you? :)
Installation
=======
composer require merkeleon/php-cryptocurrency-address-validation
Usage
use Merkeleon\PhpCryptocurrencyAddressValidation\Enums\CurrencyEnum;use Merkeleon\PhpCryptocurrencyAddressValidation\Validator; $validator = Validator::make(CurrencyEnum::BITCOIN); var_dump($validator->isValid('1QLbGuc3WGKKKpLs4pBp9H6jiQ2MgPkXRp'));