PHP code example of donatj / webarchive

1. Go to this page and download the library: Download donatj/webarchive library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

donatj / webarchive example snippets


function __construct()

function addMainResource($content [, $url = null [, $mime = 'text/html' [, $charset = 'UTF-8' [, $headers = null]]]])

function addSubResource($content, $url [, $mime = 'text/html' [, $charset = null [, $headers = null]]])

function save($filename)

function output()