photon/utils-viewdumper

Simple tools to produce WGET like dump of a view

v1.0.0 2016-07-19 12:22 UTC

This package is auto-updated.

Last update: 2024-12-18 20:32:20 UTC


README

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