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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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:

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:

It reads what already exists and writes files. That is the job.


All versions of laravel-wayback-machine with dependencies

PHP Build Version
Package Version
Requires php Version 8.3.* || 8.4.*
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package odinns/laravel-wayback-machine contains the following files

Loading the files please wait ...