PHPackages                             danwe/bitcoin-address - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. danwe/bitcoin-address

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

danwe/bitcoin-address
=====================

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

1.0.0(10y ago)0491MIT LicensePHPPHP &gt;=5.4.0

Since Jun 21Pushed 10y ago1 watchersCompare

[ Source](https://github.com/DanweDE/php-bitcoin-address)[ Packagist](https://packagist.org/packages/danwe/bitcoin-address)[ Docs](https://github.com/DanweDE/php-bitcoin-address)[ RSS](/packages/danwe-bitcoin-address/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (1)

bitcoin-address
===============

[](#bitcoin-address)

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

[![Latest Stable Version](https://camo.githubusercontent.com/62ac3d0ec0c4a449eb86b5fabe48633cfecad55c5dbc7a6276078a1db364a8df/68747470733a2f2f706f7365722e707567782e6f72672f64616e77652f626974636f696e2d616464726573732f76657273696f6e2e706e67)](https://packagist.org/packages/danwe/bitcoin-address)[![Build Status](https://camo.githubusercontent.com/8efafb7a9dbcfcfff70e2258ca851acbae00f7d8c6a70436db8dca7905a5b324/68747470733a2f2f7472617669732d63692e6f72672f44616e776544452f7068702d626974636f696e2d616464726573732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/DanweDE/php-bitcoin-address)[![Coverage Status](https://camo.githubusercontent.com/2a8040261fe44d32dca34f7bba72d168c53d59ea0582b6bb12fe31fb0f2e43b4/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f44616e776544452f7068702d626974636f696e2d616464726573732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/DanweDE/php-bitcoin-address?branch=master)[![Dependency Status](https://camo.githubusercontent.com/aa383857922d043a3c4d14f061a255f8197d239aa7a8bff7ae9cd81490b41a7d/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3535353165353034303663333138333934313030303037342f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/5551e50406c3183941000074)[![Download count](https://camo.githubusercontent.com/045351732cd38098f60db9c17638ab7dab5ae831e3463c032f10126239b06147/68747470733a2f2f706f7365722e707567782e6f72672f64616e77652f626974636f696e2d616464726573732f642f746f74616c2e706e67)](https://packagist.org/packages/danwe/bitcoin-address)

Requirements
------------

[](#requirements)

- PHP 5.4 or later

Installation
------------

[](#installation)

[Composer](http://getcomposer.org/) 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
-----

[](#usage)

### Library Structure

[](#library-structure)

All classes are located in the ParserHooks namespace, which is PSR-4 mapped onto the `src/` directory.

Tests
-----

[](#tests)

This library comes with a set up PHPUnit test suite. After installation via composer, tests can be run by running `php /vendor/bin/phpunit`.

Authors
-------

[](#authors)

bitcoin-address has been written by [Daniel A. R. Werner](https://www.mediawiki.org/wiki/User:Danwe).

Release notes
-------------

[](#release-notes)

### 1.0.0

[](#100)

- Initial release.

### TODOs:

[](#todos)

- Support for testnet addresses, either in this or in a separate package.

Links
-----

[](#links)

- [bitcoin-address on Packagist](https://packagist.org/packages/danwe/bitcoin-address)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3984d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ecc61c1eeb1c779c18a7ded7221be8c6a2c4088cfc52605c376351bc663f30c?d=identicon)[Danwe](/maintainers/Danwe)

---

Top Contributors

[![DanweDE](https://avatars.githubusercontent.com/u/101926?v=4)](https://github.com/DanweDE "DanweDE (23 commits)")

---

Tags

addressbitcoinbtccryptocurrency

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/danwe-bitcoin-address/health.svg)

```
[![Health](https://phpackages.com/badges/danwe-bitcoin-address/health.svg)](https://phpackages.com/packages/danwe-bitcoin-address)
```

###  Alternatives

[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

41.5k328.9k1](/packages/ccxt-ccxt)[bitwasp/bitcoin-lib

Implementation of raw transactions in bitcoin, HD wallets, Electrum wallets, and other fun stuff.

13922.3k5](/packages/bitwasp-bitcoin-lib)[coinpaymentsnet/coinpayments-php

A PHP wrapper for the CoinPayments.net v1 API.

55126.2k](/packages/coinpaymentsnet-coinpayments-php)[jimmerioles/bitcoin-currency-converter-php

A simple and lightweight bitcoin to currency converter and vice versa based on current exchange rates from your chosen provider: Coinbase, Coindesk, Bitpay and etc.

132.7k](/packages/jimmerioles-bitcoin-currency-converter-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
