mollsoft/laravel-monero-module

v1.0.2 2023-12-17 19:01 UTC

This package is auto-updated.

Last update: 2024-11-17 21:32:23 UTC


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();