welsh-tidy-mouse / binary-fetcher
Tool to download binaries depending on your platform (OS + architecture).
dev-main
2025-05-28 16:08 UTC
Requires
- php: ^8.3
- ext-zip: *
- symfony/console: ^7.0
- symfony/filesystem: ^7.2
- symfony/http-client: ^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.50
- phpmd/phpmd: ^2.14
- phpstan/phpstan: ^1.11
- phpunit/phpunit: ^11.0
This package is auto-updated.
Last update: 2025-05-28 16:08:27 UTC
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 test
to run PhpUnit testscomposer lint
to run PHPStancomposer cs
to fix files with Code Sniffercomposer md
to run PHPMDcomposer check
for all commands above
๐ This package is part of the Welsh Tidy Mouse ecosystem.