04/01
2017
Wallogit.com
2017 © Pedro Peláez
File Integrity Checker for PHP applications
File Integrity Checker for PHP applications, (*1)
Using composer:, (*2)
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
}