PHPackages                             chendujin/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. [API Development](/categories/api)
4. /
5. chendujin/bitcoin

ActiveLibrary[API Development](/categories/api)

chendujin/bitcoin
=================

bitcoin is a plugin for a unified Bitcoin digital currency open API interface

1.0.0(6y ago)09MITPHPPHP &gt;=7.0.0

Since Jul 24Pushed 6y agoCompare

[ Source](https://github.com/chendujin/Bitcoin)[ Packagist](https://packagist.org/packages/chendujin/bitcoin)[ RSS](/packages/chendujin-bitcoin/feed)WikiDiscussions master Synced 2mo ago

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

 Bitcoin Package for Laravel
-----------------------------

[](#----bitcoin-package-for-laravel)

 [![Latest Stable Version](https://camo.githubusercontent.com/db6a8eae69a825774679028f2290235abb2082e0c75635a0ac1f0b79cb351600/68747470733a2f2f706f7365722e707567782e6f72672f6368656e64756a696e2f626974636f696e2f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/chendujin/bitcoin) [![Latest Unstable Version](https://camo.githubusercontent.com/73c893cf5e187bfb2ee138c9ddea2146c93ea979e871a6e47a045f7079f477c9/68747470733a2f2f706f7365722e707567782e6f72672f6368656e64756a696e2f626974636f696e2f762f756e737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/chendujin/bitcoin) [![License](https://camo.githubusercontent.com/4c1b716644e639a6625afe17851148681a088e9734d1c1f4e714902a4b14d4ae/68747470733a2f2f706f7365722e707567782e6f72672f6368656e64756a696e2f626974636f696e2f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/chendujin/bitcoin) [![Total Downloads](https://camo.githubusercontent.com/80cc25a61774d08eb7d7b67213fea34daefb756b5800ba4c92317fecaf584521/68747470733a2f2f706f7365722e707567782e6f72672f6368656e64756a696e2f626974636f696e2f646f776e6c6f616473)](https://packagist.org/packages/chendujin/bitcoin)

Introduction
------------

[](#introduction)

This is a simple Laravel Service Provider providing for [Generic JSON RPC](http://cw.hubwiz.com/card/c/bitcoin-json-rpc-api/)

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

[](#installation)

To install the PHP client library using Composer:

```
composer require chendujin/bitcoin
```

### Laravel 5.5+

[](#laravel-55)

If you're using Laravel 5.5 or above, the package will automatically register the `Bitcoin` provider and facade.

### Laravel 5.4 and below

[](#laravel-54-and-below)

Add `Chendujin\Bitcoin\BitcoinServiceProvider` to the `providers` array in your `config/app.php`:

```
'providers' => [
    // Other service providers...

    Chendujin\Bitcoin\BitcoinServiceProvider::class,
],
```

If you want to use the facade interface, you can `use` the facade class when needed:

```
use Chendujin\Bitcoin\Facade\Bitcoin;
```

Or add an alias in your `config/app.php`:

```
'aliases' => [
    ...
    'Bitcoin' => Chendujin\Bitcoin\Facade\Bitcoin::class,
],
```

Configuration
-------------

[](#configuration)

You can use `artisan vendor:publish` to copy the distribution configuration file to your app's config directory:

```
php artisan vendor:publish --provider="Chendujin\Bitcoin\BitcoinServiceProvider"
```

Then update `config/bitcoin.php` with your credentials. Alternatively, you can update your `.env` file with the following:

```
BTC_USER=xyy
BTC_SECRET=xyy
BTC_HOST=http://localhost
BTC_PORT=8332
```

Usage
-----

[](#usage)

To use the Bitcoin Client Library you can use the facade, or request the instance from the service container:

```
try{
        $ret = \Chendujin\Bitcoin\Facade\Bitcoin::getnewaddress('123456');
        print_r($ret);
    }catch (Exception $e){
        echo $e->getMessage();
    }
```

Or

```
$bitcoin = app('Bitcoin');

$result=$bitcoin->getnewaddress('123456');
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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

2486d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6fed23a1717adf119f9dcd5343085fed14e74fe12b6a1d027a4e29437696854b?d=identicon)[chendujin](/maintainers/chendujin)

---

Top Contributors

[![chendujin](https://avatars.githubusercontent.com/u/25337893?v=4)](https://github.com/chendujin "chendujin (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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