PHPackages                             bitcont/bitcoin - 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. bitcont/bitcoin

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

bitcont/bitcoin
===============

Lightweight PHP bitcoin client.

1.0.0(12y ago)15592PHPPHP &gt;= 5.3.0

Since Dec 10Pushed 12y ago6 watchersCompare

[ Source](https://github.com/bitcont/bitcoin)[ Packagist](https://packagist.org/packages/bitcont/bitcoin)[ RSS](/packages/bitcont-bitcoin/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Parsers
-------

[](#parsers)

At the moment, two parsers are available.

\###blockchain.info### This parser uses blockchain.info API to retrieve information about addresses and transactions. It is easy to set up, but can be quite slow.

\###blockchain.info + bitcoind combined### This parser uses blockchain.info API to retrieve information about addresses and bitcoind json-rpc API to retrieve information about transactions. It is faster, but requires bitcoind.

Alternatively, you can add your own parser as long as it implements Bitcont\\Bitcoin\\Clients\\IParser interface.

Example
-------

[](#example)

```
// choose your parser
$bitcoin = new Bitcont\Bitcoin\Clients\BlockchainInfo\Client; // blockchain.info parser
$bitcoin = new Bitcont\Bitcoin\Clients\BitcoindInfo\Client('bitcoind username', 'bitcoind password'); // blockchain.info + bitcoind parser

// get bitcoin address
$address = $bitcoin->getAddress('1Kug5MazR3c8VsBn61JZdvzdix49K7CCES'); // returns IAddress
$address->getId(); // returns '1Kug5MazR3c8VsBn61JZdvzdix49K7CCES'

// get bitcoin transaction
$transaction = $bitcoin->getTransaction('b26369a892dcc3408afcf96af42d0313e1e3c4eed8124ba57506483b6fa3ffc6'); // returns ITransaction
$transaction->getId(); // returns 'b26369a892dcc3408afcf96af42d0313e1e3c4eed8124ba57506483b6fa3ffc6'

// get transaction inputs
$inputs = $transaction->getInputs(); // returns array of IInput

// get the first input's info
$value = $inputs[0]->getValue(); // returns the number of satoshis (integer)
$sender = $inputs[0]->getAddress(); // returns the sender address

// get transaction outputs
$outputs = $transaction->getOutputs(); // returns array of IOutput

// get the last output's value
$value = end($outputs)->getValue(); // returns the number of satoshis (integer)
$recipient = end($outputs)->getAddress(); // returns the recipient address

// get all transactions for an address
$transactions = $bitcoin->getTransactions($address); // returns array of ITransaction (oldest first)
```

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

[](#installation)

Installation via composer recommended.

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

[](#requirements)

PHP 5.3 or higher.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

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

4539d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad660b85da584e40e2cfae95ef4d220f5786ffad0f75b6703d4dafa3b38050fb?d=identicon)[elendir](/maintainers/elendir)

---

Top Contributors

[![bitcont](https://avatars.githubusercontent.com/u/6141306?v=4)](https://github.com/bitcont "bitcont (1 commits)")

### Embed Badge

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

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

###  Alternatives

[kodicomponents/navigation

The KodiCMS Support package.

12232.6k10](/packages/kodicomponents-navigation)

PHPackages © 2026

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