Skip to content

vazaha-nl/invoice-generator

Repository files navigation

Invoice generator

Introduction

For my business I need to send out invoices that are mostly based on my time registration data. The first few times I did it by hand using an xls export, but that got old real fast, so, being a developer, I took some time to automate it. After a while I thought it might be fun to open source this. Because why not?

What it does

This Laravel based app retrieves all data from my time tracking app Toggl Track using their REST api and compiles it into the correct form to create an invoice for e-boekhouden using their SOAP webservice.

It creates invoice lines based on time entries grouped by project name. The time will be rounded to nearest quarters. The line description will include the project name and a list of dates, intelligently generated.

Audience

This app is of very limited use to others. It works for me but it is by no means finished or stable. The implementation is very specific. There is only a very simple CLI interface. And no documentation except this readme.

But if you're using Toggl Track for time tracking and e-boekhouden for book keeping, and you have a very similar workflow and invoice format as I have, this just might be useful to you.

Requirements

  • PHP8.1+
  • a relational database (tested with MySQL)
  • a Toggl Track account and API credentials
  • an e-boekhouden account and API credentials

Installation

  • Clone the repo
  • composer install
  • Copy .env.example to .env
  • php artisan key:generate
  • Adjust .env settings, in particular the DB_*, TOGGL_TRACK_* and E_BOEKHOUDEN_* keys

Usage

Run php artisan invoice:generate and follow the prompts.

License

This software is open-sourced software licensed under the MIT license.

About

Generate invoices using time tracking data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published