Commission calculation from api using SOLID principles.
composer update
composer dump-autoload
php index.php input.csv
php bin/phpunit --testdox
Note: Here input.csv is your csv file path
-
Application root access file is index.php
-
Commission calculation business logics are written in src\Services\Commission\CommissionCalculator.php file
-
Application services location is src\Services
-
Application repositories location is src\Repositories
-
Application helper functions are written in src\Helper\Common.php file
-
Application common configuration are written in src\config\common.php
-
Application validation and request handler location is src\Request