Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 1.72 KB

README.md

File metadata and controls

49 lines (30 loc) · 1.72 KB

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