This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
v1.8.0
New tracking system of transformer information
Removed log4php
Improved Transformer performance
Example on how to extract logging info from transformer.
$instant_article = InstantArticle::create();
$transformer = new Transformer();
$transformer->loadRules($json_file);
$html_file = file_get_contents(__DIR__ . '/simple.html');
TransformerLog::setLevel(TransformerLog::DEBUG);
$transformer->transformString($instant_article, $html_file);
$result = $transformer->getLogs();