pokap / webarchive
Client for web.archive.org
dev-master
2015-04-29 09:35 UTC
Requires
- symfony/css-selector: ~2.3
- symfony/dom-crawler: ~2.3
- zendframework/zend-http: ~2.2
Requires (Dev)
- ext-zlib: >=1.1
This package is not auto-updated.
Last update: 2024-12-30 14:09:28 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.
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