A simple command line interface bank account
git clone this repository.
Download composer: curl -s https://getcomposer.org/installer | php
Install dependencies, run this command from the root directory:
php composer.phar install
account
account:open - Open a new bank account. Set an overdraft. Deposit and withdraw from the account.
To run this command from the root directory:
php bank.php account:open [--balance --overdraft]
--balance - Display the balance of the account.
--overdraft - Display the overdraft limit of the account.
To run this command from the root directory:
./vendor/bin/phpunit