Download the PHP package odinns/laravel-wayback-machine without Composer
On this page you can find all versions of the php package odinns/laravel-wayback-machine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download odinns/laravel-wayback-machine
More information about odinns/laravel-wayback-machine
Files in odinns/laravel-wayback-machine
Package laravel-wayback-machine
Short Description Restore public Wayback Machine captures from Laravel into local files.
License MIT
Homepage https://github.com/odinns/laravel-wayback-machine
Informations about the package laravel-wayback-machine
Laravel Wayback Machine
Restore existing Internet Archive Wayback Machine captures from Laravel.
This package lists public CDX captures, writes JSON manifests, and restores archived files into local storage for offline browsing. It does not create new archive.org captures. No Save Page Now. No live-site scraping dressed up as a feature.
Install
Publish the config when you want to change defaults:
Set a real User-Agent for your app:
You can also override output paths when the Laravel default is not where you want files to land:
Start Small
List captures first:
If you care about the first rows CDX returns, use --selection=all. The default latest-per-url mode collapses repeated captures after CDX responds.
Dry-run a download:
Write a manifest:
Restore a bounded archived scope:
Unbounded restores are blocked in non-interactive runs. In an interactive terminal, you must confirm them. That friction is deliberate.
wayback:mirror starts with the selected page captures, fetches same-scope render assets like images and stylesheets, and rewrites local references when it can. It does not follow every normal link on the page. A download table should not turn into a surprise file harvest.
Use --ignore-errors when you want a local page even if some optional assets fail. The command will finish faster, but the output may be incomplete.
Commands
Shared options:
--selection is the friendly mode. --collapse is the raw CDX escape hatch.
latest-per-url keeps the newest capture for each normalized URL. unique-content deduplicates by digest. all keeps every matching capture.
API
Restored files use id_ replay URLs by default. Toolbar replay URLs are still included in manifests for reference.
Output Layout
Manifest default:
Restored capture default:
Manifest entries include timestamp, original URL, replay URL, raw URL, status, MIME type, digest, length, and local path when restored.
Paths include query and port-sensitive parts so distinct URLs do not collapse into the same file.
Respect The Archive
Defaults are conservative:
- selection:
latest-per-url - delay:
2000ms - retries: connection failures,
429,500,502,503,504 - backoff:
1000,3000,10000,30000ms
The Internet Archive is public infrastructure, not a private backup drive. Keep restores bounded. Use a clear User-Agent. Donate if this saves you work: https://archive.org/donate
Development
Run the full local gate before pushing:
This package uses Testbench for command tests. In package development, Testbench writes Wayback output to this repository's storage/ directory instead of hiding it under vendor/orchestra.
Versioning
Composer versions come from Git tags. Do not add a version field to composer.json.
Contributing
Keep changes small, tested, and boring in the right places. If you touch download or mirror behavior, test real edge cases: CDX parsing, retries, path collisions, local reference rewriting, and command guardrails.
Security
Report security issues privately through GitHub Security Advisories when available:
Downloaded captures are untrusted input. Do not execute restored files.
Changelog
See CHANGELOG.md.
License
MIT. See LICENSE.
Non-Goals
This package does not:
- create new Wayback captures
- call Save Page Now
- ship Docker
- create migrations or Eloquent models
- classify site-specific spam or app-specific content
It reads what already exists and writes files. That is the job.
All versions of laravel-wayback-machine with dependencies
illuminate/console Version ^12.0 || ^13.0
illuminate/filesystem Version ^12.0 || ^13.0
illuminate/http Version ^12.0 || ^13.0
illuminate/support Version ^12.0 || ^13.0