Skip to content

photon/utils-viewdumper

Repository files navigation

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

About

Simple utils to save a view on the disk

Resources

License

Stars

Watchers

Forks

Packages

No packages published