Commission Calculator is a PHP command-line application designed to calculate commissions for transactions based on predefined rules. The application reads transaction data from a CSV file, processes each transaction, and outputs the commission fees into an output CSV file.
- Docker
- docker-compose
These instructions will cover usage information and for the docker container
List the different parameters available to your container
| Parameter | Description |
|---|---|
script.php |
The PHP script that will be executed. Starting point of application. |
input.csv |
The input CSV file containing transactions to process, You can change name in ClI to insert your data. |
Build and start the Docker container, it will automatically display the results in CLI, input.csv is the default file name, you can change it in CLI.
docker-compose run app php script.php input.csvdocker-compose up phpunit- PHP 8.2
- Docker
- Composer