Download the PHP package it-healer/laravel-bitcoin without Composer
On this page you can find all versions of the php package it-healer/laravel-bitcoin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-bitcoin
Laravel Bitcoin is a Laravel package for work with cryptocurrency Bitcoin. You can create descriptor wallets, generate addresses, track current balances, collect transaction history, organize payment acceptance on your website, and automate outgoing transfers.
Examples
Create Descriptor Wallet:
Import Descriptor Wallet using descriptors:
Create address:
Validate address:
Send all BTC from wallet:
Send BTC from wallet:
Installation
You can install the package via composer:
After you can run installer using command:
And run migrations:
Register Service Provider and Facade in app, edit config/app.php
:
In file app/Console/Kernel
in method schedule(Schedule $schedule)
add
В Supervisor
создайте сервис bitcoin со следующими настройками:
Если Вы используйте Laravel Sail
- то в файл supervisord.conf
добавьте:
Electrum
Для установки приложения Electrum установите на сервер зависимости
А потом выполните команду:
Для запуска процесса Electrum добавьте в Supervisor конфигурацию:
В Sheduler добавьте выполнение команды electrum:sync
ежеминутно:
Для корректной работы локальной ноды
в Firewall разрешите TCP 8333
Commands
Scan transactions and update balances:
Scan transactions and update balances for wallet:
WebHook
You can set up a WebHook that will be called when a new incoming BTC deposit is detected.
In file config/bitcoin.php you can set param:
Example WebHook handler:
Requirements
The following versions of PHP are supported by this version.
- PHP 8.2 and older
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-bitcoin with dependencies
ext-curl Version *
ext-pcntl Version *
ext-posix Version *
guzzlehttp/guzzle Version ^7.2
illuminate/contracts Version ^10.0|^11.0|^12.0
spatie/laravel-package-tools Version ^1.92.0
furqansiddiqui/bip39-mnemonic-php Version ^0.2.1
brick/math Version >=0.12