FairShare

How to split expenses fair and easy among a group?

PHP MVC MySQL

Receive your fair share in 3 steps

FairShare is a web app that helps groups to distribute expenses among their group members. Each member documents their expenses with the app. In the end, the app calculates the fair share for each group member. Further it suggests who pays whom which amount to balance out all accounts.

The algorithm works as follows:

  1. Calculate costs per day [total group expenses / total usage days]
  2. Calculate user balances [total expenses by user - (costs per day * user days)]
  3. Offset user balances with each other and suggest payment flows to equal out all balances

Application areas are flat-sharing communities and holiday trips with friends or family. If you are interested in using the service, please get in touch.

In a nutshell

Technology stack

The app is build up on a Model-View-Controller framework called mini-mvc by bambamboole.

Composer manages the PHP dependencies. I use the open-source template engine Twig to manage frontend views. The layout uses Bootstrap 4 via a CDN integration.

Finally, faker by fzaninotto, an open-source library to automatically generate fake data has been used for testing purpose.

Client

Personal project

Year

2018

Link
https://fairshare.janchristlieb.de
Repository
https://github.com/jchristlieb/fairshare