Metapackage that lists all the packages that are html transformers
Metapackage that lists all the packages that are html transformers.
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-suite": "^2"
...
}
Then run php composer.phar update
to install this library.
The autoloading of all classes of this library is made through composer's autoloader.
Those packages are not explicitely declared but included by the cascade of dependancies :
php-extended/php-html-transformer-logger
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
MIT (See license file).