php-extended/php-html-transformer-object

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

A library that implements the php-extended/php-html-transformer-interface

6.0.0 2023-07-08 18:04 UTC

This package is auto-updated.

Last update: 2023-08-04 12:13:26 UTC


README

An implementation of the php-http-transformer-object-interface library

coverage build status

Installation

The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.

  • Download composer.phar from their website.
  • Then run the following command to install this library as dependency :
  • php composer.phar php-extended/php-html-transformer-object ^6

Basic Usage

You may use this package the following way:


use PhpExtended\Html\HtmlTransformerFactoryConfiguration;
use PhpExtended\Html\HtmlTransformerFactory;

$config = new HtmlTransformerobjectConfiguration();
$config->setLogger($logger); // a psr-3 compliant logger
$object = new HtmlTransformerFactory($config);
$transformer = $object->createNewTransformer();
// $transformer is now an HtmlTransformerInterface

License

MIT (See license file).