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
Requires
- php: >=7.1
- php-extended/php-html-transformer-interface: ^3
- php-extended/polyfill-php80-stringable: >=1
- psr/log: ^1
Requires (Dev)
README
A transformer that logs what other transformers does on an html tree.
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).