pokap/webarchive

Client for web.archive.org

Installs: 852

Dependents: 0

Suggesters: 0

Security: 0

Stars: 8

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/pokap/webarchive

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

This package is not auto-updated.

Last update: 2025-10-06 17:40:53 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