andkom / ethereum-address
A simple Ethereum address encoder/validator written in PHP.
1.0.0
2018-12-18 23:44 UTC
Requires
- php: ^7.0
- kornrunner/keccak: ^1.0
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2025-03-16 17:53:26 UTC
README
A simple Ethereum address encoder/validator written in PHP.
Installation
composer require andkom/ethereum-address
Usage
Encode public key into address:
$address = Address:encode($pubKey);
Validate address:
$isValid = Address::isValid($address);
Convert address into case-sensitive checksum address:
$checksumAddress = Address::toChecksumAddress($address);