8000 GitHub - RumenDamyanov/commission-calculator: A simple application for calculating commission rates.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

RumenDamyanov/commission-calculator

Repository files navigation

Commission Calculator

Tests codecov

Overview

Commission Calculator is a development tool designed to compute commission rates for various business scenarios. It provides a flexible and configurable system for calculating commissions with customizable rates.

Configuration

The application is configured using YAML files located in the config directory. There is example .env file that could be used as a starting point.

Usage

Configure the desired commission rates in the configuration file and use the calculator service to compute commissions based on your business rules.

Development

The application is currently in development mode. To get started:

  1. Clone the repository.
  2. Configure your settings in config/services.yml.
  3. Copy .env-example to .env and configure your API keys (not included). Beware of rate limits!
  4. Run the application ./bin/calculate data/input.txt (or use your own input file).
# Using default output location (data/output.txt)
./bin/calculate input.txt

# Using custom output location
./bin/calculate input.txt /custom/path/output.txt

Notes

  • The application is designed to be run in a terminal.
  • You need your own API keys for the services used.
  • Beware of rate limits! Some free services have very low limits (e.g. 5 requests per hour).

Testing

To run tests locally:

# Run tests with coverage
composer test

# View coverage report
open tests/coverage/index.html

Code Coverage

The project maintains 100% code coverage. Coverage reports are:

  • Generated automatically on each push
  • Available in the GitHub Actions artifacts
  • Published to Codecov

License

MIT License. See LICENSE for more details.

About

A simple application for calculating commission rates.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0