PHPackages                             eclipxe/xmlresourceretriever - 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. eclipxe/xmlresourceretriever

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

eclipxe/xmlresourceretriever
============================

XSD and XLST resource downloader for local storage

v2.0.4(2mo ago)4136.8k↑22.7%25MITPHPPHP &gt;=7.3CI passing

Since Sep 25Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/eclipxe13/XmlResourceRetriever)[ Packagist](https://packagist.org/packages/eclipxe/xmlresourceretriever)[ Docs](https://github.com/eclipxe13/XmlResourceRetriever)[ RSS](/packages/eclipxe-xmlresourceretriever/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (15)Used By (5)

`Eclipxe/XmlResourceRetriever`
==============================

[](#eclipxexmlresourceretriever)

[![Source Code](https://camo.githubusercontent.com/66530cedfde2d00777bf2c7561c9f8c813afe0c0b7fb44d7bda89fd35692578a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d65636c6970786531332f586d6c5265736f757263655265747269657665722d626c75653f7374796c653d666c61742d737175617265)](https://github.com/eclipxe13/XmlResourceRetriever)[![PHP Version](https://camo.githubusercontent.com/1c26e32aa510fb66131717ead92bb62aabce43d71ab088cf45235d03f020b3ed/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f65636c697078652f586d6c5265736f757263655265747269657665723f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eclipxe/XmlResourceRetriever)[![Latest Version](https://camo.githubusercontent.com/ed19727749d65a6c6800d35452612bea6bb91fd41e28bed131f76f86de924e0b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f65636c6970786531332f586d6c5265736f757263655265747269657665723f7374796c653d666c61742d737175617265)](https://github.com/eclipxe13/XmlResourceRetriever/releases)[![Software License](https://camo.githubusercontent.com/d6e829698ac32c32aa8adf7706dad0a8c16e623e584c093bd6bdfea009ae44f9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f65636c6970786531332f586d6c5265736f757263655265747269657665723f7374796c653d666c61742d737175617265)](https://github.com/eclipxe13/XmlResourceRetriever/blob/main/LICENSE)[![Build Status](https://camo.githubusercontent.com/866a75b46549c3e22ae1715a5ed2ada2e22d4ad7209c57d092fedf23f6594cff/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f65636c6970786531332f586d6c5265736f757263655265747269657665722f6275696c642e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265)](https://github.com/eclipxe13/XmlResourceRetriever/actions/workflows/build.yml?query=branch:main)[![Scrutinizer](https://camo.githubusercontent.com/f7f3f598ab5a399a7ee3dabc6febd6ce9520b58dfcb1f76a49725af8a44e85c7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f65636c6970786531332f586d6c5265736f757263655265747269657665722f6d61696e3f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/eclipxe13/XmlResourceRetriever/)[![Coverage Status](https://camo.githubusercontent.com/920bacc831b28dd4409c096dd8f16743a76c95fb2f06520009835682fc34f883/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f65636c6970786531332f586d6c5265736f757263655265747269657665722f6d61696e3f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/eclipxe13/XmlResourceRetriever/code-structure/main/code-coverage)[![Total Downloads](https://camo.githubusercontent.com/50f29197d8741e663360cb20cac703725d7d60f649aeebd929e652164f8b2a3d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f65636c697078652f586d6c5265736f757263655265747269657665723f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eclipxe/XmlResourceRetriever)

> XSD and XLST resource downloader for local storage

The purpose of this library is to download recursively XML resources from the internet to a local storage for further usage. At this moment it only allows Schemas (XSL) and Transformations (XSLT) but is easely extensible implementing the `RetrieverInterface` interface or extending the `AbstractXmlRetriever` class.

For every downloaded file it will override its dependences to a relative location, in this way, every dependence should be available to work offline.

You can use the local object `PhpDownloader` that simply uses `copy` function to get and store a file from internet. You can also use your own implementation of the `DownloaderInterface` according to your needs. If you built a configurable and useful downloader class feel free to contribute it to this project.

Installation
------------

[](#installation)

Use [composer](https://getcomposer.org/), so please run:

```
composer require eclipxe/xmlresourceretriever
```

Basic usage
-----------

[](#basic-usage)

```
