2017 © Pedro Peláez
 

library metalink

image

pnz/metalink

  • Wednesday, March 11, 2015
  • by thepanz
  • Repository
  • 1 Watchers
  • 2 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Metalink

This package allows to simplify the handling and serving of MetaLink files. The main class is Metalink, while ApacheMetalink is an example of Apache mirror list wrapped in a Metalink provider., (*1)

Basic Example

``` php require_once 'vendor/autoload.php';, (*2)

$path = 'lucene/solr/4.10.3/solr-4.10.3.zip'; $meta = new Pnz\Metalink\ApacheMetalink($path); $filename = basename($path);, (*3)

header('Content-Type: application/metalink4+xml'); header('Content-Description: File Transfer'); header('Content-Disposition: attachment; filename="' . $filename . '.metalink"');, (*4)

print $meta->getMetalink4XML(); die(); ```, (*5)

The Versions

11/03 2015

1.x-dev

1.9999999.9999999.9999999-dev https://github.com/thePanz/Metalink

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar thepanz

metalink