PHPackages                             jaycodesign/btchelper - 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. jaycodesign/btchelper

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

jaycodesign/btchelper
=====================

Btc Helper is a class with some helper methods for bitcoin

71973[1 issues](https://github.com/Jayco-Design/BTCHelper/issues)PHP

Since Nov 5Pushed 11y ago1 watchersCompare

[ Source](https://github.com/Jayco-Design/BTCHelper)[ Packagist](https://packagist.org/packages/jaycodesign/btchelper)[ RSS](/packages/jaycodesign-btchelper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

BTCHelper
=========

[](#btchelper)

Btc Helper is a class with some helper methods for bitcoin

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

[](#installation)

Simply add a dependency to your project's `composer.json` file if you use [Composer](http://getcomposer.org/) to manage the dependencies of your project.

Here is a minimal example of a `composer.json` file that just defines a dependency on BTCHelper:

```
{
    "require": {
        "jaycodesign/btchelper": "dev-master"
    }
}

```

### Formatting

[](#formatting)

You can deal with Satoshis everywhere in your code and only convert to BTC at display time like so:

```
  use JaycoDesign\BTCHelper\BTCHelper;
  $one_satoshi = BTCHelper::format(1); // 0.00000001
```

### Conversion

[](#conversion)

```
BTCHelper::convertToBTCFromSatoshi(303490); // 0.0030349
BTCHelper::convertToSatoshiFromBTC("0.00000001"); // 1
BTCHelper::convertBTCToMilliBits("0.001"); // 1
BTCHelper::convertMilliBitsToBTC(1); // 0.001
BTCHelper::convertBTCToMicroBits("0.000001"); // 1
BTCHelper::convertMicroBitsToBTC(1); // 0.000001
```

### Bitcoin Address Validation

[](#bitcoin-address-validation)

```
BTCHelper::validBitcoinAddress("1Af3EHHrbYRwaj4dcbKKcBxYxc6Z8j7xMZ"); // TRUE
BTCHelper::validBitcoinAddress("POO"); // FALSE
```

If this package helped you please consider sending a tip to this address: **1Af3EHHrbYRwaj4dcbKKcBxYxc6Z8j7xMZ**

[![](https://camo.githubusercontent.com/78a4fc6c432e5fc1840768b7d94513cd4a3c798a0476ab0e9d243e76dc14f271/687474703a2f2f627463616464726573732e696e666f2f314166334548487262595277616a346463624b4b634278597863365a386a37784d5a2f323030)](https://camo.githubusercontent.com/78a4fc6c432e5fc1840768b7d94513cd4a3c798a0476ab0e9d243e76dc14f271/687474703a2f2f627463616464726573732e696e666f2f314166334548487262595277616a346463624b4b634278597863365a386a37784d5a2f323030)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

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/e2b1d43282fc1ae974d0018b39f990788b7d5ceb2a0e65590901e70c7c14e876?d=identicon)[tenfef](/maintainers/tenfef)

---

Top Contributors

[![tenfef](https://avatars.githubusercontent.com/u/1075450?v=4)](https://github.com/tenfef "tenfef (9 commits)")

### Embed Badge

![Health badge](/badges/jaycodesign-btchelper/health.svg)

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

###  Alternatives

[tatter/menus

Dynamic menus for CodeIgniter 4

1713.8k1](/packages/tatter-menus)[llm/mcp-server

PHP SDK for building MCP servers

431.1k](/packages/llm-mcp-server)[asorasoft/chhankitek

Convert from AD (Anno Domini) to Lunar (Chhankitek) format.

104.2k](/packages/asorasoft-chhankitek)[mohammedmanssour/super-simple-dto

Creating data transfer objects with the power of php objects

122.8k1](/packages/mohammedmanssour-super-simple-dto)

PHPackages © 2026

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