photon / utils-viewdumper
Simple tools to produce WGET like dump of a view
v1.0.0
2016-07-19 12:22 UTC
Requires
- photon/photon: >=1.0.0
This package is auto-updated.
Last update: 2024-12-18 20:32:20 UTC
README
Save a view on the disk with all assets linked in the view (CSS, JS, IMG).
Quick start
-
Add the module in your project
composer require "photon/utils-viewdumper:dev-master"
or for a specific version
composer require "photon/utils-viewdumper:1.0.0"
-
Declare views in your photon project
-
Enjoy !
Dump from a view name
use \photon\utils\viewDumper;
viewDumper::fromView('/tmp/view.html', 'myview');
Dump from an URL
use \photon\utils\viewDumper;
viewDumper::fromView('/tmp/url.html', '/best/page/ever');