mollsoft / laravel-monero-module
Laravel Monero Module
v1.0.2
2023-12-17 19:01 UTC
Requires
- php: ^8.2
- ext-decimal: *
- guzzlehttp/guzzle: ^7.2
- illuminate/contracts: ^10.0
- spatie/laravel-package-tools: ^1.15
README
Organization of payment acceptance and automation of payments of XMR coins on the Monero blockchain.
Installation
You can install the package via composer:
composer require mollsoft/laravel-monero-module
After you can run installer using command:
php artisan monero:install
And run migrations:
php artisan migrate
Register Service Provider and Facade in app, edit config/app.php
:
'providers' => ServiceProvider::defaultProviders()->merge([ ..., \Mollsoft\LaravelMoneroModule\MoneroServiceProvider::class, ])->toArray(), 'aliases' => Facade::defaultAliases()->merge([ ..., 'Monero' => \Mollsoft\LaravelMoneroModule\Facades\Monero::class, ])->toArray(),
Add cron job, in file app/Console/Kernel
in method schedule(Schedule $schedule)
add
$schedule->command('monero:sync')
->everyMinute()
->runInBackground();