php-extended/php-html-transformer-logger

This package is abandoned and no longer maintained. The author suggests using the php-extended/php-html-transformer-object package instead.

A transformer that logs what other transformers does on an html tree

3.1.14 2021-06-25 23:03 UTC

This package is auto-updated.

Last update: 2021-06-28 05:13:55 UTC


README

A transformer that logs what other transformers does on an html tree.

coverage build status

Installation

The installation of this library is made via composer. Download composer.phar from their website. Then add to your composer.json :

	"require": {
		...
		"php-extended/php-html-transformer-logger: "^3",
		...
	}

Then run php composer.phar update to install this library. The autoloading of all classes of this library is made through composer's autoloader.

Basic Usage

To filter a dom node, do the following :


use PhpExtended\Html\HtmlTransformerLogger;

/* @var $transformer \PhpExtended\Html\HtmlTransformerInterface */
$transformer = new HtmlTransformerLogger($transformer);
// now $transformer logs the changes in the html tree

License

MIT (See license file).