/finance

This is a package written in PHP for handling finances consisting of prices, money, currencies and taxes.

Primary LanguagePHPMIT LicenseMIT

bassix finance

This is a package written in PHP 7.4 for handling finances consisting of prices, money, currencies and taxes.

To get involved into the development of this project you need to get a local copy of this repository:

git clone git@github.com:bassix/finance.git
cd finance

Note: This project is based on the GitFlow branching model and workflow. So after cloning the repository run git flow init.

Code quality tools

Run PHPUnit tests:

./vendor/bin/phpunit tests

Run phpstan to make statical analyse of the code. (Level from 0 to 7, where 0 is the most loose, 7 is the strongest. 0 is default):

./vendor/bin/phpstan analyse ./src ./tests --level 7

Run php-cs-fixer to fix errors in code (use --dry-run option only to see errors):

./vendor/bin/php-cs-fixer fix

Documentation and constructor with more detailed information could be found at https://mlocati.github.io/php-cs-fixer-configurator.

Composer dependencies

Run Composer update with Roave Security Advisories, a package to ensure that the application doesn't have installed dependencies with known security vulnerabilities.

composer update --dry-run roave/security-advisories