An open API service indexing awesome lists of open source software.

https://github.com/f2face/wayback-machine

Simple Wayback Machine (Archive.org) API wrapper.
https://github.com/f2face/wayback-machine

archive-dot-org php

Last synced: 7 months ago
JSON representation

Simple Wayback Machine (Archive.org) API wrapper.

Awesome Lists containing this project

README

          

# Wayback Machine
Wayback Machine (Archive.org) API wrapper.

Info: https://archive.org/help/wayback_api.php

## Installation
### With Composer
> composer require f2face/wayback-machine

### Without Composer
[Download this package](https://github.com/f2face/wayback-machine/archive/master.zip "Download source code")

## 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));
~~~~