welsh-tidy-mouse/binary-fetcher
Composer 安装命令:
composer require welsh-tidy-mouse/binary-fetcher
包简介
Tool to download binaries depending on your platform (OS + architecture).
README 文档
README
Tool to download binaries depending on your platform (OS + architecture).
✅ Features
- Download from code hosting platform releases (Github, Gitlab, ...)
- Detects platform:
linux,macos,windows/x64,arm64 - Works from CLI or as PHP service with binary providers
🔧 Install
composer require welsh-tidy-mouse/binary-fetcher
🚀 Usage
CLI
php bin/binary-fetcher download "\MyVendo\BinaryProvider\MyBinaryProvider" [version] [--dir="/my/download/dir"]
or with composer
composer exec binary-fetcher download "\MyVendo\BinaryProvider\MyBinaryProvider" [version] [--dir="/my/download/dir"]
PHP
$fetcher = new \BinaryFetcher\BinaryFetcher('/my/download/dir', HttpClient::create()); $binaryName = $fetcher->download(new \MyVendo\BinaryProvider\MyBinaryProvider, 'v1.2.13');
🧪 Quality
composer testto run PhpUnit testscomposer lintto run PHPStancomposer csto fix files with Code Sniffercomposer mdto run PHPMDcomposer checkfor all commands above
🐁 This package is part of the Welsh Tidy Mouse ecosystem.
统计信息
- 总下载量: 246
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: WTFPL
- 更新时间: 2025-05-22