This project is a vanilla PHP (7.4+) demo project. This is a sample project for fetching and manipulating data from a CSV file. Developed an object-oriented code, especially considering design thinking to be generic, extendable, easy to maintain by other staff members while thinking about performance.
Highcharts JS library was used to populate the chart using JSON data provided by the simple REST API.
- PHP 7.4 or higher needs to be installed.
sudo apt-get install php
- PHPunit must be installed to run unit tests
sudo apt install phpunit
- Clone or download this repository
git clone https://github.com/DuminduP/Retention-curve.git
- Change directory
cd Retention-curve/
- Run unit tests
phpunit
- Run PHP inbuild web server
php -S 127.0.0.1:8080
You can see the chart by visiting http://127.0.0.1:8080 on your browsr.