robo47/directory-hasher

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

DirectoryHasher is a small library to create files with hashes and file-informations from a directory-structure to compare it with another result later.

dev-master 2012-04-01 18:20 UTC

This package is not auto-updated.

Last update: 2021-11-26 23:11:40 UTC


README

Build Status

DirectoryHasher is a small library to create files with hashes and file-informations from a directory-structure to compare it with another result later.

This allows to detect changes on your webspace which may come from intrusions

For compatiblity reasons it should be php 5.2 compliant.

Requirements

PHP 5.2

  • DOM
  • SPL

Example

In /examples/ you find some hackish example scripts which create result-files, compares them and one which can be used together with a cronjob to regulary check a directory and send mails if something changes.

Further unimplemented ideas

  • More flexible Comparator
  • Way to filter differences which can be ignored (eg. based on directory)