danwe/bitcoin-address

Simple PHP Danwe\Bitcoin\Address class for value objects representing bitcoin addresses.

1.0.0 2015-06-21 22:08 UTC

README

Introduces a simple class Danwe\Bitcoin\Address for immutable value objects representing bitcoin addresses.

Latest Stable Version Build Status Coverage Status Dependency Status Download count

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.

Links