f2face / wayback-machine
Wayback Machine (Archive.org) API wrapper
2.0
2018-03-24 00:09 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-01-05 02:30:59 UTC
README
Wayback Machine (Archive.org) API wrapper.
Info: https://archive.org/help/wayback_api.php
Installation
With Composer
composer require f2face/wayback-machine
Without Composer
Usage Example
require_once __DIR__.'/vendor/autoload.php';
use f2face\WaybackMachine\WaybackMachine;
// Initialize
$wb = new WaybackMachine();
// Check web page availability
$url_to_check = 'https://github.com';
var_dump($wb->available($url_to_check));
// Save a web page
$url_to_save = 'https://github.com';
var_dump($wb->save($url_to_save));