php-extended/php-html-transformer-object

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

4.0.0 2022-05-31 08:26 UTC

This package is auto-updated.

Last update: 2022-07-31 00:25:34 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. Download composer.phar from their website. Then add to your composer.json :

	"require": {
		...
		"php-extended/php-html-transformer-object": "^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

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).