Download the PHP package masmaleki/calculator without Composer
On this page you can find all versions of the php package masmaleki/calculator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download masmaleki/calculator
More information about masmaleki/calculator
Files in masmaleki/calculator
Package calculator
Short Description Simple Laravel Transaction fee Calculator for laravel 8|9
License MIT
Homepage https://github.com/masmaleki/calculator
Informations about the package calculator
Simple Laravel Package - Transaction fee calculator - By MSM
This package is just for using in an internal project, and it's not use full for all projects,but you can use it and extend it based on your needs.
Installation
You can install the package via composer:
Usage
After installing the package with composer, then you need to run your laravel application:
Then call this url in your browser:
Then you should see this:
After submiting the form you will see the table of trasaction with the calculated commissions based on your rules
Publish Resources
If you want to modify the config file for rates or Rate API url or view and asset files you need to run the below commands:
Config
There is pre-defined values in the config file which you can publish the config file and find it in /config/calculator.php or assign the values in your .env file
Testing
For testing first you should publish the package test then run the laravel test command. follow this :
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- MohammadSadegh Maleki
- All Contributors
License
The MIT License (MIT). Please see License File for more information.