Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sarfraznawaz2005/save-complete-html

This class can save HTML pages complete with images, CSS and JavaScript.
https://github.com/sarfraznawaz2005/save-complete-html

Last synced: 16 days ago
JSON representation

This class can save HTML pages complete with images, CSS and JavaScript.

Awesome Lists containing this project

README

        

# PHP Save Complete HTML Page

This class can save HTML pages complete with images, CSS and JavaScript.

It takes the URL of a given page and retrieves it to store in a given file.

The class can parse the HTML and determine which images, CSS and JavaScript files it needs, so those files are also downloaded and saved inside the HTML page saved to a local file.

Optionally it can skip the JavaScript code, keep only the page content, and compress the resulting page removing the whitespace.