litvinjuan/ethereum-validator
Composer 安装命令:
composer require litvinjuan/ethereum-validator
包简介
PHP implementation to validate ethereum addresses
README 文档
README
Ethereum Validator provides an easy way to validate a given string is a valid ethereum address.
Installation
You may install Ethereum Validator via Composer:
composer require litvinjuan/ethereum-validator
Usage
Ethereum Validator has a static isValidAddress method that receives a string containing the ethereum address and returns true if the address is valid, or false if it's not:
use litvinjuan\EthereumValidator\EthereumValidator; $address = '0x71C7656EC7ab88b098defB751B7401B5f6d8976F'; if (EthereumValidator::isValidAddress($address)) { // Valid Address } // Invalid Address
Contributing
Thank you for considering contributing to Ethereum Validator! Please read the contributing guidelines before opening a PR.
##License
Ethereum Validator is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 1.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-13