checksum-checker
This is a simple tool written in plain PHP, which made my life easier by automating Pipelines I use often. Therefore, this tool checks if a given file matches a given checksum. As you run such commands quite often on Linux, to verify your downloaded files, I quicky got annoyed by having to do this manually each time.That's why this project's was it to replaces programs such as sha256sum or any sha*sum and the manual check afterwards if the checksum actually matches the one given by the publisher.
With this tool it's one simple command, which automatically detects the given hashing algorithm from the checksum. This rely's on the fact that the hashing algorithm is known. Luckyly GitHub and similar Services usually present a checksum in the format <algorithm>:<hash>. Therefore we can use the first part here to detect it, and default to SHA256, as it is the most common one. Then it generates the checksum of the file from the detected hashing algorithm, giving the user instant feedback via Termwind if the checksum matches.
Additonally there's also the possibility to build a Phar archive, so you don't have to rely on running the exact PHP script and run it by globally by moving into $PATH.