welsh-tidy-mouse/binary-fetcher

Tool to download binaries depending on your platform (OS + architecture).

dev-main 2025-05-28 16:08 UTC

This package is auto-updated.

Last update: 2025-05-28 16:08:27 UTC


README

Tests Binary Fetcher license

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 tests
  • composer lint to run PHPStan
  • composer cs to fix files with Code Sniffer
  • composer mdto run PHPMD
  • composer check for all commands above

๐Ÿ This package is part of the Welsh Tidy Mouse ecosystem.