pokap/webarchive

Client for web.archive.org

dev-master 2015-04-29 09:35 UTC

This package is not auto-updated.

Last update: 2023-01-30 04:36:55 UTC


README

Requires at least PHP 5.3.3.

This is a client for retrieve list of snapshots archives from web.archive.org, or another depending on provider.

Build Status SensioLabsInsight

Installation using Composer

Add the dependency:

php composer.phar require pokap/webarchive

Usage

If you need a list of archive snapshot from WayBack in 2013.

<?php

use WebArchive\Request;
use WebArchive\Client;
use WebArchive\Provider\WayBackProvider;

$request = new Request('http://archive.org/', ['timeout' => 10]);

$client = new Client($request, new WayBackProvider(2013)));

var_dump($client->retrieve()); // returns an instance of \WebArchive\SnapshotCollection