Use HttpDownloader
in [TranslatablePackageFactory
Previously the JSON data was downloaded via file_get_contents()
, which did not allow to make use of the stored credentials in Composer Config file. This new implementation will make use of the Composer\Util\HttpDownloader
internally, which uses the Composer Config and the stored credentials to send alongside with the Request API Tokens or Basic Auth credentials.
Read more about the changes in docs: Configuration.md
This new implementation solves some requirements from #35 .
QoL
-
workflows/behat.yml // remove composer v2.0 which has no support for PHP 8.1
-
[workflows/behat.yml // add PHP 8.1 and 8.2 and Composer v2.4 and v2.5
-
workflows // add lint-php and combine 3 workflows into 1 workflow run.