PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Niko Peikrishvili  >  PHP Commission Calculator  >  README.md  >  Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Commission Calculator
Calculate commissions on currency transactions
Author: By
Last change:
Date: 5 months ago
Size: 615 bytes
 

Contents

Class file image Download

Home assigment Commission Calculator

Installation

1) clone the repository 2) navigate to project folder 3) run `composer install` 4) copy .env.example as .env 5) run (optional) `php artisan config:cache`

Running

php artisan calculate:commission input.csv

Output

0.60
3.00
0.00
0.06
1.50
0
0.70
0.30
0.30
3.00
0.00
0.00
8612

Run test

php artisan test

Code styles

PHPStan

./vendor/bin/phpstan analyze 

if necessary add memory limit

./vendor/bin/phpstan analyze --memory-limit=1G

PHPCs

 ./vendor/bin/phpcs
For more information send a message to info at phpclasses dot org.