ottosmops / md5sum
This package is abandoned and no longer maintained.
No replacement package was suggested.
create and verifie md5sum files
v1.1.0
2017-05-03 13:12 UTC
Requires
- php: ~5.6|~7.0
- illuminate/support: ~5.1
Requires (Dev)
- phpunit/phpunit: ~5.7
- squizlabs/php_codesniffer: ^2.3
This package is auto-updated.
Last update: 2020-08-21 17:09:10 UTC
README
** This package is not maintained any longer. Me, I use the ottosmops/hash package instead **
Installation
composer require ottosmops/md5sum
Usage
use Ottosmops\Md5sum\Md5sum; $md5 = New Md5sum(); $md5->createMd5sums($dir); if (!$md5->verifyMd5sums($dir . 'md5sums')) { print_r($this->messages); } else { echo sprintf('All files in %s have correct checksums ', $md5->md5sums); }
You can pass a filename to the createMd5sums
method. The filename must be a path relative to the dir. With the third parameter you can switch off the recursive directory iterator. No subdirectories will be scanned:
$md5 = New Md5sums(); $md5->createMd5sums($dir, "myfilename", false);
License
The MIT License (MIT). Please see License File for more information.