pnz/metalink 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pnz/metalink

Composer 安装命令:

composer require pnz/metalink

包简介

关键字:

README 文档

README

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.

Basic Example

require_once 'vendor/autoload.php';

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

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

print $meta->getMetalink4XML();
die();

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-11