A demo application with CLI suitable as a backend task. It is based on Symfony/Doctrine framework.
Database connection should be set in the file app/config/parameters.yml[.dist]
Run the following command in console:
php app/console moneytransfer:transfer "<money_sender>" "<money_receiver>" <amount_of_money>
-
PHP 5.4 and Symfony 2 have been used due to the PHP limited support for Windows XP which runs on my home PC:
[PHP For Windows](https://windows.php.net/): PHP 5.4 series will be the last versions to support Windows XP and Windows 2003. We will not provide binary packages for these Windows versions anymore after PHP 5.4. symfony/symfony v3.1.0 requires php >=5.5.9 -> your PHP version (5.4.45) does not satisfy that requirement.
-
TODO
- Debugging/logging mode instead of printing on console
- Create mocking tests
- Adding more commands such as cancelling money transfer, etc.