sakoora0x / laravel-monero-module
Laravel Monero Module
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 3
Language:JavaScript
pkg:composer/sakoora0x/laravel-monero-module
Requires
- php: ^8.2
- ext-curl: *
- ext-pcntl: *
- ext-posix: *
- brick/math: *
- illuminate/contracts: ^11.0|^12.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- orchestra/testbench: ^9.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
This package is not auto-updated.
Last update: 2025-10-25 01:05:52 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 sakoora0x/laravel-monero-module
After you can run installer using command:
php artisan monero:install
Optional, you can install Monero Wallet RPC using command:
php artisan monero:wallet-rpc
And run migrations:
php artisan migrate
Register Service Provider and Facade in app, edit config/app.php:
'providers' => ServiceProvider::defaultProviders()->merge([ ..., \sakoora0x\LaravelMoneroModule\MoneroServiceProvider::class, ])->toArray(), 'aliases' => Facade::defaultAliases()->merge([ ..., 'Monero' => \sakoora0x\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();
You must setup Supervisor, create file /etc/supervisor/conf.d/monero.conf with content (change user and paths):
[program:monero]
process_name=%(program_name)s
command=php /home/forge/example.com/artisan monero
autostart=true
autorestart=true
user=forge
redirect_stderr=true
stdout_logfile=/home/forge/example.com/monero.log
stopwaitsecs=3600
Commands
Monero Node sync with all wallets in here.
php artisan monero:node-sync [NODE ID]
Monero Wallet sync.
php artisan monero:wallet-sync [WALLET ID]
For Developers
Command for build JS script:
npm i npm run build