Skip to content

PHP Library for parsing digital receipts from REWE (supermarket)

License

Notifications You must be signed in to change notification settings

MrKrisKrisu/REWE-eReceipt-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REWE eReceipt Parser

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