Download the PHP package danwe/bitcoin-address without Composer
On this page you can find all versions of the php package danwe/bitcoin-address. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download danwe/bitcoin-address
More information about danwe/bitcoin-address
Files in danwe/bitcoin-address
Package bitcoin-address
Short Description Simple PHP Danwe\Bitcoin\Address class for value objects representing bitcoin addresses.
License MIT License
Homepage https://github.com/DanweDE/php-bitcoin-address
Informations about the package bitcoin-address
bitcoin-address
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.