mrkriskrisu/rewe-ereceipt-parser

Library for parsing digital receipts from REWE (supermarket)

v1.0 2022-03-10 21:15 UTC

This package is auto-updated.

Last update: 2024-04-11 01:39:03 UTC


README

Codacy Badge PHPUnit

Installation

$ composer require mrkriskrisu/rewe-ereceipt-parser

Example Usage

<?php
require 'vendor/autoload.php';

use K118\Receipt\REWE\Parser;

$receipt = Parser::parseFromPDF('receipt.pdf');

echo "You've paid " . $receipt->getTotalPrice() . " Euros.";

Requirements

If you want to use the build in PDF Parser you need to install pdftotext in your system. But don't worry, you can use your own PDF to Text Software if you want and give it to the eReceipt-Parser via the Parser::parseFromText($text) function.

Get the eReceipt

To get your digital Receipt at REWE you need to register at rewe.de and connect your bonus card (PAYBACK) to the account. Then you can activate the "eBon" in the settings and you'll receive the receipt after every purchase via Mail.

Contribution

I'm glad that you want to help this library to be perfect. Just do your magic und make a Pull Request. ✨

Related