1. Go to this page and download the library: Download peanutpay/php-evadts-parser library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
peanutpay / php-evadts-parser example snippets
PeanutPay\PhpEvaDts\Parser;
// Parse an EVA DTS file
$parser = new Parser();
if ($parser->load('machine_data.eva_dts')) {
$report = $parser->getReport();
// Get formatted sales report
echo $report->generateSalesTableString();
// Get structured data for analysis
$salesData = $report->generateSalesTable();
}
use PeanutPay\PhpEvaDts\Parser;
$parser = new Parser();
$parser->load('machine_data.eva_dts');
// Get all data tables at once
$tables = $parser->getTables();
// Individual data extraction
$salesData = $parser->getSalesData(); // Sales transactions
$productData = $parser->getProductData(); // Product information
$cashboxData = $parser->getCashboxData(); // Cash/coin management
$auditData = $parser->getAuditData(); // System audit trail
$eventData = $parser->getEventData(); // Events and errors
// Generate comprehensive reports
$salesReport = $parser->generateSalesReport(); // Sales analysis
$productReport = $parser->generateProductReport(); // Product performance
$errorReport = $parser->getErrorReport(); // Data validation
// Legacy compatibility for old templates
$legacyFormat = $parser->getProductReportLegacy();
use PeanutPay\PhpEvaDts\Parser;
$parser = new Parser();
// Load an EvaDTS file
$parser->load(__DIR__ . "/rhevendors.eva_dts");
// Output the parsed report
echo $parser->getReport();