10 define(
"HASH_ALGO",
"sha1");
11 define(
"COMPOSER_LOCK_PATH", __DIR__.
"/composer.lock");
12 define(
"VENDOR_PATH", __DIR__.
"/vendor");
14 header(
"Content-Type: text/plain");
16 echo
"composer.lock: ".composer_lock_hash().
"\n";
17 echo
"vendor: ".vendor_hash().
"\n";
21 return "composer.lock does not exist";
28 return "vendor directory does not exist";
34 $content = scandir(
$path);
41 function($o) use ($algo,
$path, $exclude) {
42 if ($o ===
"." || $o ===
".." || $o ===
".git") {
46 if (is_link($o) || in_array($o, $exclude)) {
52 return hash_file($algo, $o);
hash_directory($algo, $path, $exclude=[])
sort()
description: > Example for rendering a Sort Glyph.
const HASH_ALGO
This script can be used to quickly compare the state of the vendor directory with some reference...