olakunlevpn / address-validator
A simple but the best PHP cryptocurrency address validator
1.0
2021-01-21 12:05 UTC
README
Cryptocurrency AddressValidator
Easy to use PHP Bitcoin and Litecoin address validator. One day I will add other crypto currencies. Or how about you? :)
Usage
composer require olakunlevpn/address-validator
Then..
use olakunlevpn\AddressValidator\Validation; $validator = Validation::make('BTC'); var_dump($validator->validate('3B7WN6x3Z54UC94E224hMFpo2cUUACgTUK'));
Returns a boolean indicating if the address is valid or not.
Return
bool(true) //valid wallet address
bool(false) //invalid wallet address