2017 © Pedro Peláez
 

library resource-mirror

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

image

orbt/resource-mirror

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

  • Wednesday, December 5, 2012
  • by zhangtaihao
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

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., (*1)

This library contains these main components:, (*2)

  • 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

Add the following to the "require" list in your composer.json file:, (*3)

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

Run composer to update dependencies:, (*4)

$ composer update

Or to just download this library:, (*5)

$ composer update orbt/resource-mirror

License

This library is licensed under the MIT License. See the LICENSE file for detailed license information., (*6)

The Versions

05/12 2012

dev-master

9999999-dev http://github.com/orbt/ResourceMirror

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

  Sources   Download

MIT

The Requires

 

by Taihao Zhang