PHPackages                             baraja-core/wayback - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. baraja-core/wayback

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

baraja-core/wayback
===================

Simple wayback interface.

v1.0.2(3y ago)31.8kPHPPHP ^8.0

Since Sep 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/baraja-core/wayback)[ Packagist](https://packagist.org/packages/baraja-core/wayback)[ Docs](https://github.com/baraja-core/wayback)[ RSS](/packages/baraja-core-wayback/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (10)Versions (4)Used By (0)

Wayback machine API
===================

[](#wayback-machine-api)

Simple wayback interface for archive.org.

📦 Installation &amp; Basic Usage
--------------------------------

[](#-installation--basic-usage)

To install the package call Composer and execute the following command:

```
$ composer require baraja-core/wayback
```

No configuration is needed, the package will take care of the dependencies itself. The use of DIC is not required. The cache is automatically stored on the filesystem.

How to use
----------

[](#how-to-use)

Simply create instance of Wayback and call methods:

```
$wayback = new Wayback;

// Return list of available archives by host
$wayback->getArchivedUrlsByHost('baraja.cz');

// Return list of available archives by URL (http/https and www will be ignored)
$wayback->getArchivedUrls('https://php.baraja.cz/navody');

// Return list of crawled subdomains (for large sites can not be complete)
$wayback->getSubdomains('baraja.cz');

// Save now given URL to Wayback
$wayback->saveUrl('https://baraja.cz');

// Find nearest archived datetime
$wayback->getClosedArchivedDateTime('https://baraja.cz/robots.txt', new \DateTime('2020-09-04'));

// Find and download nearest archived file
$wayback->getClosedArchivedFile('https://baraja.cz/robots.txt', new \DateTime('2020-09-04'));

// Download specific file by wayback link
$wayback->getArchivedFile('http://web.archive.org/web/20200923184117/https://baraja.cz/robots.txt');
```

The return of all results from the Wayback Machine is subject to caching. The results are automatically cached on your file system.

DateTime
--------

[](#datetime)

DateTime is stored in Wayback format (string). Wayback stores the date in the UTC timezone. This package converts datetime automatically.

Example: Date `20050101143010` is `2005-01-01 14:30:10`.

📄 License
---------

[](#-license)

`baraja-core/wayback` is licensed under the MIT license. See the [LICENSE](https://github.com/baraja-core/wayback/blob/master/LICENSE) file for more details.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~182 days

Total

3

Last Release

1344d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3382204?v=4)[baraja](/maintainers/baraja)[@baraja](https://github.com/baraja)

---

Top Contributors

[![janbarasek](https://avatars.githubusercontent.com/u/4738758?v=4)](https://github.com/janbarasek "janbarasek (14 commits)")

---

Tags

archivearchive-urlbackupurlwaybackwayback-machinewaybackmachine

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/baraja-core-wayback/health.svg)

```
[![Health](https://phpackages.com/badges/baraja-core-wayback/health.svg)](https://phpackages.com/packages/baraja-core-wayback)
```

###  Alternatives

[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.2k64.2M576](/packages/nette-php-generator)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[nette/code-checker

✅ Nette CodeChecker: A simple tool to check source code against a set of Nette coding standards.

881.7M6](/packages/nette-code-checker)[contributte/menu-control

Menu control for Nette framework

29108.6k1](/packages/contributte-menu-control)[carrooi/nette-menu

Menu control for Nette framework

2950.0k1](/packages/carrooi-nette-menu)[uestla/twigrid

Experimental DataGrid for Nette Framework

1712.3k2](/packages/uestla-twigrid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
