php-extended/php-html-transformer-factory-object

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

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


README

An implementation of the php-http-transformer-factory-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-factory": "^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 HtmlTransformerFactoryConfiguration();
$config->setLogger($logger); // a psr-3 compliant logger
$factory = new HtmlTransformerFactory($config);
$transformer = $factory->createNewTransformer();
// $transformer is now an HtmlTransformerInterface

License

MIT (See license file).