2017 © Pedro Peláez
 

library webarchive

Library for writing Apple Safari's '.Webarchive' format (binary plist).

image

donatj/webarchive

Library for writing Apple Safari's '.Webarchive' format (binary plist).

  • Tuesday, October 3, 2017
  • by donatj
  • Repository
  • 2 Watchers
  • 1 Stars
  • 83 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Webarchive

Latest Stable Version Total Downloads License, (*1)

A library for writing Apple Safari's 'webarchive' binary plist files, (*2)

Requirements

  • rodneyrehm/plist: 2.*
  • php: >=5.3

Installing

Install the latest version with:, (*3)

composer require 'donatj/webarchive'

Example

To Come!, (*4)

Documentation

Class: \donatj\Webarchive

Method: Webarchive->__construct

function __construct()

Webarchive constructor, (*5)


Method: Webarchive->addMainResource

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

Adds the Primary "MainResource" - which is the entry point into the web archive,
usually an HTML document., (*6)

Parameters:
  • string $content
  • string | null $url
  • string $mime
  • string | null $charset
  • string | null $headers

Method: Webarchive->addSubResource

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

Adds a secondary resource. Images, JavaScript, XML, JSON, etc.
Resources to accompany the primary document., (*7)

Parameters:
  • string $content
  • string | null $url
  • string $mime
  • string | null $charset
  • string | null $headers

Method: Webarchive->save

function save($filename)

Save to a file, (*8)

Parameters:
  • mixed $filename - string

Method: Webarchive->output

function output()

Output to php://output, (*9)

The Versions

03/10 2017

dev-master

9999999-dev https://github.com/donatj/Webarchive-PHP

Library for writing Apple Safari's '.Webarchive' format (binary plist).

  Sources   Download

MIT

The Requires

 

webarchive

03/10 2017

v1.0.0

1.0.0.0 https://github.com/donatj/Webarchive-PHP

Library for writing Apple Safari's '.Webarchive' format (binary plist).

  Sources   Download

MIT

The Requires

 

webarchive