https://github.com/photon/utils-viewdumper
Simple utils to save a view on the disk
https://github.com/photon/utils-viewdumper
Last synced: about 1 year ago
JSON representation
Simple utils to save a view on the disk
- Host: GitHub
- URL: https://github.com/photon/utils-viewdumper
- Owner: photon
- License: lgpl-2.1
- Created: 2016-07-19T11:28:15.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-25T09:44:48.000Z (almost 10 years ago)
- Last Synced: 2025-02-15T20:49:34.980Z (over 1 year ago)
- Language: PHP
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
utils-viewdumper
================
[](https://travis-ci.org/photon/utils-viewdumper)
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"
2) Declare views in your photon project
3) 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');