tseweb / file-integrity-checker
PHP应用程序的文件完整性检查器
1.0.0
2017-01-04 19:28 UTC
This package is auto-updated.
Last update: 2024-09-11 00:43:03 UTC
README
PHP应用程序的文件完整性检查器
安装
使用composer
composer require tseweb/file-integrity-checker
用法
<?php
$fic = new TSEWEB\FileIntegrityChecker\FileIntegrityChecker('/path/to/document/root', '/outside-document-root/file-integrity/');
$fic->exclude(array(
'./cache',
'./temp',
));
$changes = $fic->getChanges();
if ($changes!==false) {
// Mail changes to administrator
}