merkeleon / php-cryptocurrency-address-validation
此包最新版本(v2.0.7)没有提供许可证信息。
加密货币地址验证。目前支持莱特币和比特币。
v2.0.7
2023-12-01 09:52 UTC
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
简单的PHP比特币和莱特币地址验证器。有一天我会添加其他加密货币。你呢? :)
安装
=======
composer require merkeleon/php-cryptocurrency-address-validation
使用
use Merkeleon\PhpCryptocurrencyAddressValidation\Enums\CurrencyEnum;use Merkeleon\PhpCryptocurrencyAddressValidation\Validator; $validator = Validator::make(CurrencyEnum::BITCOIN); var_dump($validator->isValid('1QLbGuc3WGKKKpLs4pBp9H6jiQ2MgPkXRp'));