Skip to content

Parses Deliveroo PDF invoices.

License

Notifications You must be signed in to change notification settings

guym4c/roopal-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

roopal-php Packagist

Parses Deliveroo PDF invoices.

Install

Via Composer: composer require guym4c/roopal-php

Usage

Parse using the invoice constructor

$invoice = new Guym4c\Roopal\Invoice(string $pathToYourPDF [, bool $anonymise = false]);

If $anonymise is passed to the constructor, any output using the toArray() methods or toCSV() will only include md5 hashes of rider names. Bear in mind that some payment adjustments can contact personally identifying information, such as the name of the referring rider in referral payments.

Export invoices to CSV using the static method in Invoice

$csv = Guym4c\Roopal\Invoice::toCsv([$invoice]);

Issues

Compatibility could be broken at any time - if invoices are not parsing correctly, feel free to open an issue or PR.

This repo is maintained by the IWGB. If you have an invoice which breaks the parser, you can also email it to me, @guym4c, at guymac@iwgb.co.uk - invoices mailed to this address will be handled in strictest confidence under the IWGB's Data Protection Policy.

Hosted?

IWGB Couriers Branch members can use this over the web on the IWGB website - contact a branch official to find out more. We're working on making this public once it's stable.

Putting Workers First

About

Parses Deliveroo PDF invoices.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages