PHP code example of litvinjuan / ethereum-validator
1. Go to this page and download the library: Download litvinjuan/ethereum-validator library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
litvinjuan / ethereum-validator example snippets
use litvinjuan\EthereumValidator\EthereumValidator;
$address = '0x71C7656EC7ab88b098defB751B7401B5f6d8976F';
if (EthereumValidator::isValidAddress($address)) {
// Valid Address
}
// Invalid Address