harbor run -t openthoughts/tasktrove-exp-rpt-stack-bash-v3-stack-bash-2197harbor download openthoughts/tasktrove-exp-rpt-stack-bash-v3-stack-bash-2197Task: Implement a small CLI tool to fetch and prepare PHP source code archives
Overview Build a lightweight command-line utility placed under /app/ that, given a PHP version and an output directory, determines the correct download URL for the PHP source tarball, downloads it (if not already present), and extracts its contents to a sibling extraction directory. The behavior and URL selection must mirror the logic described below, and the utility must handle directory creation and error reporting gracefully.
Functionality to implement
Inputs and outputs
File locations and naming
Notes