Skip to content

PHP demo project parsing csv data, REST API and Hicharts.

Notifications You must be signed in to change notification settings

DuminduP/Retention-curve

Repository files navigation

Retention-curve

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.

Requirements

  • 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

Installation

  1. Clone or download this repository
git clone https://github.com/DuminduP/Retention-curve.git
  1. Change directory
cd Retention-curve/
  1. Run unit tests
phpunit
  1. 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.

About

PHP demo project parsing csv data, REST API and Hicharts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published