https://github.com/galcvua/fintehst
Fintech test project (PHP, PHPUnit, mocks)
https://github.com/galcvua/fintehst
Last synced: 2 months ago
JSON representation
Fintech test project (PHP, PHPUnit, mocks)
- Host: GitHub
- URL: https://github.com/galcvua/fintehst
- Owner: galcvua
- License: other
- Created: 2023-04-09T20:40:00.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-09T20:50:42.000Z (about 2 years ago)
- Last Synced: 2025-01-24T19:32:16.275Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
# Fintehst Project
Fintehst is a PHP command-line application that provides functionality for parsing and processing financial transactions from a file. It includes classes for parsing transactions, validating transactions against predefined rules, and calculating commissions for transactions.
## Installation
To install and use the Fintehst project, follow these steps:Clone the project from GitHub repository:
``` bash
git clone https://github.com/galcvua/fintehst.git
```
Change directory to the cloned project:
``` bash
cd fintehst
```
Install the project dependencies using Composer:
```
composer install
```Create a .env file in the root of the project directory if it doesn't already exist.
Obtain an API key from https://apilayer.com/marketplace/exchangerates_data-api.
Add the following line to your .env file, replacing with your actual API key:
```
EXCHANGERATES_APIKEY=
```
## Usage
To run the Fintehst application, use the following command:```
php app.php input.txt
```
where input.txt is the name of the file containing the transactions you want to process.## Features
Parse transactions from a file
Validate transactions against predefined rules
Calculate commissions for transactions
Integration with external APIs for BIN lookup and currency exchange rates
Error handling with exception handling and logging
## Requirements
PHP 7.4 or higher
Composer for dependency management
## License
Fintehst is open-source software released under the Candidate Assessment License.## Author
Fintehst is developed and maintained by Wowa.