Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 761 Bytes

README.md

File metadata and controls

34 lines (20 loc) · 761 Bytes

utils-viewdumper

Build Status

Save a view on the disk with all assets linked in the view (CSS, JS, IMG).

Quick start

  1. 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"
  1. Declare views in your photon project

  2. 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');