danwe / bitcoin-address
Simple PHP Danwe\Bitcoin\Address class for value objects representing bitcoin addresses.
Requires
- php: >=5.4.0
- linusu/bitcoin-address-validator: ~0.1.2
Requires (Dev)
- phpunit/phpunit: 4.6.*
This package is not auto-updated.
Last update: 2024-10-26 17:50:51 UTC
README
Introduces a simple class Danwe\Bitcoin\Address for immutable value objects representing bitcoin addresses.
Requirements
- PHP 5.4 or later
Installation
Composer can be used to download and install this package as well as its dependencies.
To add this package as a local, per-project dependency to your project, simply add a
dependency on danwe/bitcoin-address
to your project's composer.json
file.
Here is a minimal example of a composer.json
file that just defines a dependency on
bitcoin-address 1.0.x:
{
"require": {
"danwe/bitcoin-address": "~1.0.0"
}
}
Usage
Library Structure
All classes are located in the ParserHooks namespace, which is PSR-4 mapped onto the src/
directory.
Tests
This library comes with a set up PHPUnit test suite. After installation via composer, tests can be
run by running php <project-dir>/vendor/bin/phpunit
.
Authors
bitcoin-address has been written by Daniel A. R. Werner.
Release notes
1.0.0
- Initial release.
TODOs:
- Support for testnet addresses, either in this or in a separate package.