Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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);
```