Unused CSS Finder 1.0.4
=======================

Crawls a website and reports the CSS classes and ids that no page uses.

Requires PHP 7.1+ with the curl and dom extensions. Command line only.

Usage
-----
  php unused_css.php https://example.com/
  php unused_css.php https://example.com/ --purge
  php unused_css.php --help

Reports are written to a folder named unused-css-<your-host> in the folder
where you run the command: report.txt, report.json and (with --purge) purged/.

Tip: drop report.json onto the report viewer on the documentation page (below)
for an easy-to-read, searchable summary. It is read in your browser, not uploaded.

It is an estimate, not proof. It does not run JavaScript, log in, or reach
pages that are not linked, so review the report before deleting any CSS.

Documentation
-------------
See the online documentation for what is and is not checked, every option,
and troubleshooting:

  https://www.cssportal.com/unused-css-finder/unused-css-finder-cli.php

Keep this file outside your public web folder. Only scan sites you own or
have permission to test.

License
-------
Released under the MIT License. See the LICENSE file. The software is provided
"as is", without warranty of any kind.
