PHPackages                             utipd/native-follower - 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. utipd/native-follower

ActiveLibrary

utipd/native-follower
=====================

A Bitcoin blockchain block and transaction follower.

0851PHP

Since Aug 28Pushed 11y ago1 watchersCompare

[ Source](https://github.com/UTipdMe/native-follower)[ Packagist](https://packagist.org/packages/utipd/native-follower)[ RSS](/packages/utipd-native-follower/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

A Bitcoin block and transaction follower. This is a standalone component of UTipdMe.

[![Build Status](https://camo.githubusercontent.com/f7b6d84464df5d9ef0d22c7d88f26e6749c7e7f7d3dd64453a4ad5f9a7095b83/68747470733a2f2f7472617669732d63692e6f72672f55546970644d652f6e61746976652d666f6c6c6f7765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/UTipdMe/native-follower)

Here's a sample

```
use Utipd\NativeFollower\FollowerSetup;
use Utipd\NativeFollower\Follower;
use Nbobtc\Bitcoind\Bitcoind;
use Nbobtc\Bitcoind\Client;

// create a bitcoin RPC client
$bitcoin_client = new Bitcoind(new Client("http://{$rpc_user}:{$rpc_password}@{$host}:{$port}"));

// init a mysql database connection
$pdo = new \PDO($db_connection_string, $db_user, $db_password);

// create the MySQL tables
if ($first_time) {
    $setup = new FollowerSetup($pdo, $db_name='bitcoin_blocks');
    $stup->InitializeDatabase();
}

// build the follower and start at a recent block
$follower = new Follower($bitcoin_client, $pdo);
$follower->setGenesisBlock(313500);

// setup the handlers
$follower->handleNewBlock(function($block_id) {
    echo "New block: $block_id\n";
});
$follower->handleNewTransaction(function($transaction, $block_id) {
    echo "\$transaction:\n".json_encode($transaction, 192)."\n";
});
$follower->handleOrphanedBlock(function($orphaned_block_id) {
    echo "Orphaned block: $orphaned_block_id\n";
});

// listen forever
while (true) {
    $follower->processAnyNewBlocks();
    sleep(10);
}
```

BTC or Counterparty Tokens are gratefully accepted at 1HKXoNbTCFY7kKWzJ929aFU6Z42K5CdgY

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b86e6a54873d5dd61d3682a3be00127af3b7b2b5c53eb070b160e29789d4c0d?d=identicon)[dweller](/maintainers/dweller)

---

Top Contributors

[![deweller](https://avatars.githubusercontent.com/u/51414?v=4)](https://github.com/deweller "deweller (13 commits)")

### Embed Badge

![Health badge](/badges/utipd-native-follower/health.svg)

```
[![Health](https://phpackages.com/badges/utipd-native-follower/health.svg)](https://phpackages.com/packages/utipd-native-follower)
```

PHPackages © 2026

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