tseweb/file-integrity-checker

File Integrity Checker for PHP applications

1.0.0 2017-01-04 19:28 UTC

This package is auto-updated.

Last update: 2022-01-10 18:45:58 UTC


README

File Integrity Checker for PHP applications

Install

Using composer:

composer require tseweb/file-integrity-checker

Usage

<?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
}