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
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-11