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
3.1.14
2021-06-25 19:17 UTC
Requires
- php: >=7.1
- php-extended/php-html-transformer-cdata-filter: ^3
- php-extended/php-html-transformer-chain: ^3
- php-extended/php-html-transformer-comment-filter: ^3
- php-extended/php-html-transformer-doctype-filter: ^3
- php-extended/php-html-transformer-empty-filter: ^3
- php-extended/php-html-transformer-factory-interface: ^3
- php-extended/php-html-transformer-logger: ^3
- php-extended/php-html-transformer-script-filter: ^3
- php-extended/php-html-transformer-style-filter: ^3
- php-extended/polyfill-php80-stringable: >=1
Requires (Dev)
README
An implementation of the php-http-transformer-factory-interface library
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).