PHPackages                             wangta69/btc-payment - 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. [Payment Processing](/categories/payments)
4. /
5. wangta69/btc-payment

ActiveLibrary[Payment Processing](/categories/payments)

wangta69/btc-payment
====================

Payment system for btc with bitcoind

1.0.0(7y ago)1243MITPHPPHP &gt;=5.6.0

Since Apr 22Pushed 6y ago1 watchersCompare

[ Source](https://github.com/wangta69/btc-payment)[ Packagist](https://packagist.org/packages/wangta69/btc-payment)[ RSS](/packages/wangta69-btc-payment/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

btc-payment
===========

[](#btc-payment)

Prerequisites
-------------

[](#prerequisites)

**Laravel version &gt;= 5.5**

Install package via composer:

```
composer require wangta69/btc-payment

```

```
$btc = app("Pondol\BtcPayment\Bitcoind");
protected $btc;
/**
 * Create a new controller instance.
 *
 * @return void
 */
public function __construct(Bitcoind $btc)
{
    $this->btc = $btc;
    $this->btc->getaccountaddress("");
}

```

OR

```
public function getaccountaddress() {
    $btc = app("Pondol\BtcPayment\Bitcoind");
    return $btc->getaccountaddress("37");
}

```

#### Checking payments and confirmations:

[](#checking-payments-and-confirmations)

Package contains class Pondol\\BtcPayment\\Commands\\CheckPayment. This is Laravel Command and you can call it via php artisan :

```
php artisan bitcoin:checkpayment

```

Each time you call it, it scan for payments and confirmations on block chain. You can call it manually for testing purposes like mentioned above , but there is no much sense to do so, because it's job is to check for payments and it needs to run always.

You need to make crontab entry on linux servers or task scheduler on Win servers to call this command every minute.

```
// Example for linux
crontab -e

// add this line to cron tab and replace path
* * * * * cd /path/to/your/project/ php artisan bitcoin:checkpayment >/dev/null 2>&1

```

This script also fires events that we can listen ...

#### Listening for payments

[](#listening-for-payments)

You'll find new classes in **app\\Listeners** folder of your app when you published pakage ( see installation section). this is :

**ConfirmedPaymentListener.php**

To activate these Listeners copy this code in **app\\Providers\\EventServiceProvider.php** class (this class exists by default installation of Laravel), in **$listen** attribute of this class.

Like this:

```
protected $listen = [
        'App\Events\Event' => [
            'App\Listeners\EventListener',
        ],

        'Pondol\BtcPayment\Events\ConfirmedPaymentEvent' => [
            'App\Listeners\ConfirmedPaymentListener',
        ],
    ];

```

In each of these class there is handle method, where you can put logic for actions that need to be done when event is fired (DB insert-update, sending mails ...).

Below is example of ConfimedPaymentListener, event is generated when number of confirmations is equal to BITCOIND\_MIN\_CONFIRMATIONS in .env file and we can be sure that payment is ok.

```
    public function handle(ConfirmedPaymentEvent $event)
    {
        Log::debug('Confirmed Payment listener: '. $event->confirmedPayment);
         // Here you add your code for sending mails, db update ...
    }

```

### Events

[](#events)

1. **Pondol\\BtcPayment\\Events\\ConfirmedPaymentEvent** - Payment is made and number of confirmations is equal or greater than value of **BITCOIND\_MIN\_CONFIRMATIONS** in .env file.

### Models

[](#models)

**Pondol\\BtcPayment\\Models\\Payment** - Represents Confirmed and Unconfirmed Payments (see Usage section)

License
-------

[](#license)

MIT License

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

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

Every ~2 days

Total

2

Last Release

2572d ago

Major Versions

0.0.5 → 1.0.02019-04-24

### Community

Maintainers

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

---

Top Contributors

[![wangta69](https://avatars.githubusercontent.com/u/427687?v=4)](https://github.com/wangta69 "wangta69 (12 commits)")

### Embed Badge

![Health badge](/badges/wangta69-btc-payment/health.svg)

```
[![Health](https://phpackages.com/badges/wangta69-btc-payment/health.svg)](https://phpackages.com/packages/wangta69-btc-payment)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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