Download the PHP package eclipxe/xmlresourceretriever without Composer
On this page you can find all versions of the php package eclipxe/xmlresourceretriever. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eclipxe/xmlresourceretriever
More information about eclipxe/xmlresourceretriever
Files in eclipxe/xmlresourceretriever
Package xmlresourceretriever
Short Description XSD and XLST resource downloader for local storage
License MIT
Homepage https://github.com/eclipxe13/XmlResourceRetriever
Informations about the package xmlresourceretriever
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
Use composer, so please run
Basic usage
Retriever more information
These methods apply to XslRetriever
and XsltRetriever
retrieve($url)
Download recursively an url and store it into the retriever base path, it changes the child elements that contains references to other files.download($url)
Download an url and store it into the retriever base path. It does not validate the file for xml errors. It does not download dependences.buildPath($url)
Return the location of were a file should be stored according to the base path.setDownloader($downloader)
Change the defaultPhpDownloader
to a custom implementation.
XsdRetriever
search for namespace http://www.w3.org/2001/XMLSchema
elements import
and include
.
XsltRetriever
search for namespace http://www.w3.org/1999/XSL/Transform
elements import
and include
.
PHP Support
This library is compatible with the latest PHP supported version and above. Please, try to use the full potential of the language.
Contributing
Contributions are welcome! Please read CONTRIBUTING for details and don't forget to take a look the TODO and CHANGELOG files.
Copyright and License
The Eclipxe\XmlResourceRetriever
library is copyright © Carlos C Soto
and licensed for use under the MIT License (MIT). Please see LICENSE for more information.
All versions of xmlresourceretriever with dependencies
ext-filter Version *
ext-fileinfo Version *
ext-dom Version *