Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andkom/php-ethereum-address
A simple Ethereum address encoder/validator written in PHP.
https://github.com/andkom/php-ethereum-address
encoder ethereum ethereum-address ethereum-library generator validation
Last synced: about 6 hours ago
JSON representation
A simple Ethereum address encoder/validator written in PHP.
- Host: GitHub
- URL: https://github.com/andkom/php-ethereum-address
- Owner: andkom
- License: mit
- Created: 2018-12-18T23:36:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-18T23:45:33.000Z (almost 6 years ago)
- Last Synced: 2024-11-10T16:49:45.828Z (4 days ago)
- Topics: encoder, ethereum, ethereum-address, ethereum-library, generator, validation
- Language: PHP
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## PHP Ethereum Address
A simple Ethereum address encoder/validator written in PHP.
### Installation
```bash
composer require andkom/ethereum-address
```### Usage
Encode public key into address:
```php
$address = Address:encode($pubKey);
```Validate address:
```php
$isValid = Address::isValid($address);
```Convert address into case-sensitive checksum address:
```php
$checksumAddress = Address::toChecksumAddress($address);
```