Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

v1.8.0

Compare
Choose a tag to compare
@everton-rosario everton-rosario released this 17 Jan 11:42
7108507

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();