moneroo / moneroo-laravel
This is simple PHP Package for Laravel to interact with Moneroo API.
Installs: 1 530
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.7
- illuminate/contracts: ^9.0 || ^10.0 || ^11.0
Requires (Dev)
- axazara/php-cs: ^0.1
- insolita/unused-scanner: ^2.4
- larastan/larastan: ^2.6
- nunomaduro/collision: ^6.0
- orchestra/testbench: ^7.29
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- phpunit/phpunit: ^9.6
- roave/security-advisories: dev-latest
- spatie/laravel-ray: ^1.32
This package is auto-updated.
Last update: 2024-11-08 18:04:07 UTC
README
Moneroo Laravel SDK
Slack · Website · Contact · Documentation
Requirements
Laravel 9 and later. PHP Requirements: PHP 8.1 and later. (Not tested on PHP 8.0, but it should work)
For PHP 7.4 and 8.0 or Laravel 8 and below , please use the moneroo-php package.
Installation
You can install the package via composer:
composer require moneroo/moneroo-laravel
Configuration
After you've installed the package via composer, you can run this command:
php artisan moneroo:install
This command will:
- Publish a
moneroo.php
file in your config directory - Append your
.env
file with theMONEROO_PUBLIC_KEY
andMONEROO_SECRET_KEY
variables if they don't already exist.
You will have to replace 'your-public-key' and 'your-secret-key' with your actual Moneroo public key and secret key respectively.
MONEROO_PUBLIC_KEY=your-public-key MONEROO_SECRET_KEY=your-secret-key
Please keep in mind that these are sensitive keys and should not be publicly exposed. Laravel .env file is ignored by Git, which makes it a good place to store sensitive information.
Documentation
See the Laravel SDK documentation.
Development
1- Perform the tests
composer test
2- Format and analyze your code before commit and push.
composer format # Format your code with the required code style composer unused # check if there is an unused dependency composer analyze # Analyze your code with phpstan
DEV Mode
You can set (or add) moneroo.devMode
to true
in your config/moneroo.php
file to enable the dev mode.
After enabling the dev mode, you can set moneroo.devBaseUrl
to customize the base URL of the Moneroo API you want to use.
In dev mode, the SDK will use the moneroo.devBaseUrl
instead of the default base URL https://api.moneroo.io
.
Notes
- The project is based on the KISS principle.
- Each time you make a change, you must run the tests and format your code.
- Each time you make a change, you must update the documentation.
- Each time you make a change, you must update the changelog.
- Each time you make a change, you must add test cases.
- Each time you make a change, you must update the version number.
- Each time you make a change, you must update the API documentation.
- Each time you make a change, you must update the README.md file.
Security Vulnerabilities
If you discover a security vulnerability within Moneroo Laravel SDK, please send an e-mail to Moneroo Security via hello@moneroo.io. All security vulnerabilities will be promptly addressed.
License
The Moneroo Laravel SDK is open-sourced software licensed under the MIT license.