PHPackages                             orbt/resource-mirror - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. orbt/resource-mirror

ActiveLibrary[File &amp; Storage](/categories/file-storage)

orbt/resource-mirror
====================

Resource Mirror is a library for mirroring webpage resources in a local directory for serving over the web as a mirror.

038PHP

Since Dec 5Pushed 13y ago1 watchersCompare

[ Source](https://github.com/orbt/ResourceMirror)[ Packagist](https://packagist.org/packages/orbt/resource-mirror)[ RSS](/packages/orbt-resource-mirror/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Resource Mirror
===============

[](#resource-mirror)

Resource Mirror is a library for mirroring webpage resources in a local directory for serving over the web as a mirror. This library uses the Symfony Event Dispatcher to dispatch resource events for registered event listeners to perform further actions, e.g. on resources that have just been materialized.

This library contains these main components:

- `ResourceMirror`: Main handler for materializing resources given a path on a specified base URL.
- `Resource`: Interface for accessing resources and maintaining metadata about resources for the mirror to use.
- `GenericResource`: Base resource type. A generic resource can resolve another relative path based on itself.
- `Materialized`: Interface for accessing resource content. A `MaterializedResource` can be constructed around a `Resource` once it has been materialized and is accessible.
- `ResourceCollection`: A collection of resources. Some utilities can accept a collection of resources and produce a new collection with completely different resources (e.g. by aggregating them).
- `ResourceEvent`: Event dispatched containing a resource collection.

Installation using Composer
---------------------------

[](#installation-using-composer)

Add the following to the `"require"` list in your `composer.json` file:

```
    "orbt/resource-mirror": "dev-master"

```

Run composer to update dependencies:

```
$ composer update
```

Or to just download this library:

```
$ composer update orbt/resource-mirror
```

License
-------

[](#license)

This library is licensed under the MIT License. See the LICENSE file for detailed license information.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/942d46a1af8ffd7e0ef54a85693b121c6cb8cf1cf44eb47f063ab85a054d5a3e?d=identicon)[zhangtaihao](/maintainers/zhangtaihao)

---

Top Contributors

[![zhangtaihao](https://avatars.githubusercontent.com/u/329162?v=4)](https://github.com/zhangtaihao "zhangtaihao (71 commits)")

### Embed Badge

![Health badge](/badges/orbt-resource-mirror/health.svg)

```
[![Health](https://phpackages.com/badges/orbt-resource-mirror/health.svg)](https://phpackages.com/packages/orbt-resource-mirror)
```

###  Alternatives

[ericnorris/amazon-s3-php

A lightweight and fast S3 client for PHP.

2147.0k](/packages/ericnorris-amazon-s3-php)

PHPackages © 2026

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