$ composer require mrkriskrisu/rewe-ereceipt-parser
<?php
require 'vendor/autoload.php';
use K118\Receipt\REWE\Parser;
$receipt = Parser::parseFromPDF('receipt.pdf');
echo "You've paid " . $receipt->getTotalPrice() . " Euros.";
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.
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.
I'm glad that you want to help this library to be perfect. Just do your magic und make a Pull Request. ✨
-
eReceipt - PHP interfaces for all eReceipt libraries libraries
-
eReceipt Parser - PHP library which combines all of the following libraries