peterfox / php-inliner
Command line tool for in-lining CSS with HTML
Installs: 349
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 1
pkg:composer/peterfox/php-inliner
Requires
- php: >=5.4.0
- pelago/emogrifier: ^1.0@dev
- symfony/console: ~2.5
This package is not auto-updated.
Last update: 2018-06-27 18:59:19 UTC
README
This project provides a simple command line tool for in-lining HTML documents with CSS.
Install
Use composer to add the application to your project.
composer require --dev peterfox/php-inliner
Usage
The command works as follows:
php-inliner inline [-css|--css-file CSS-FILE] [-o|--output-file OUTPUT-FILE] [--] <html-file>
The only required argument is html-file. The application will look for any linked stylesheets referenced in the document as well as in-lining and style blocks.
You can also specify if you want to use an external css file or provide a different file to output to.