Skip to content

geralt/filecheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

filecheck

File Integrity Checker.

Build Status Images

This is a simple PHP script that check folder's files integrity looking for added, modified or deleted files. It could be usefull to check website's folder to see if someone has upload some unwanted file.

Basic usage:

set_time_limit(0);
error_reporting(0);

require_once ('vendor/autoload.php');

// variables
$logFolder = dirname ( __FILE__) . DIRECTORY_SEPARATOR . 'log';
$folder = dirname( __FILE__);

// process
$f = new \FileCheck\FileCheck($folder, $logFolder);
$f->setEmailFrom('[email protected]');
$f->setEmailTo('[email protected]');
$f->setExcludedFolders(array( $folder . '/log'));
$f->setNumFileLimit(5000);

// execute    
$f->run();
// view report
$f->getReport();
// send report by email
$f->sendReportByEmail();

To-Do.

About

File Integrity Checker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages