PHPackages                             redbox/scan - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. redbox/scan

ActiveLibrary[File &amp; Storage](/categories/file-storage)

redbox/scan
===========

Scan your filesystem for changes with ease

v1.1(10y ago)1161[11 issues](https://github.com/johnnymast/redbox-scan/issues)MITPHPPHP &gt;=5.3CI failing

Since Dec 27Pushed 9y ago1 watchersCompare

[ Source](https://github.com/johnnymast/redbox-scan)[ Packagist](https://packagist.org/packages/redbox/scan)[ RSS](/packages/redbox-scan/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (7)Used By (0)

[![Build Status](https://camo.githubusercontent.com/57f95a7fa5332ccd037e66ce3e1001c380c8850ae0aca8ceb2c452b63ed96e92/68747470733a2f2f7472617669732d63692e6f72672f6a6f686e6e796d6173742f726564626f782d7363616e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/johnnymast/redbox-scan)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4ff0ba9a93a6b5535b5b8ec5ce8238c6274b920e749a78b758c1b1b0b28602fb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6f686e6e796d6173742f726564626f782d7363616e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/johnnymast/redbox-scan/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/1d2a00bd34e0935ffc33ee152bb4521aee6ceaf7e6552b05b2e5959bcb09bcc9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6f686e6e796d6173742f726564626f782d7363616e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/johnnymast/redbox-scan/?branch=master)[![GitHub stars](https://camo.githubusercontent.com/40478dd353dd4db5db1a8aa569ff4ce978c0f3bb20339912919e1707fa15ce59/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4848564d2d52656164792d677265656e2e737667)](http://hhvm.com/)[!\[Twitter URL\](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&amp;label=Contact author)](https://twitter.com/intent/tweet?text=@mastjohnny)

Redbox-scan
===========

[](#redbox-scan)

Redbox-scan is a filesystem scanning and analyzing tool that allows you to scan your filesystem for new and modified files. The API is flexible and easy to use even for beginning developers. If you combine Redbox-scan with Redbox-cli you could build a powerful CLI (Commandline Interface) application to secure your servers within even minutes. An other use case for the API could be a trigger for rsyncing files to a new location.

Examples
--------

[](#examples)

In the examples folder you find basic examples of how to scan your filesystem. If you want to learn howto write your own Adapter i suggest checking out the database example.

Installation
------------

[](#installation)

Using [composer](https://packagist.org/packages/redbox/scan):

```
$ composer require redbox/scan
```

Installation trough archive download
------------------------------------

[](#installation-trough-archive-download)

If you download the package from a website (for example [github.io](https://github.com/johnnymast/redbox-scan/) or [phpclasses.org](http://www.phpclasses.org/package/9573-PHP-Scan-files-for-new-or-modified-files.html) or any other) you will need composer installed on your machine. The reason for this is that Redbox-scan comes without the require vendor directory which is required to run the package.

First of all if you don't have composer installed you can find it [here](https://getcomposer.org/) follow the instructions and don't get intimidated in fact its really really easy to install.

In the this sample i will assume you have composer installed (on any machine). Go to the package root (where composer.json is located) and execute the following command.

```
$ composer install  --no-dev
```

Now your almost ready to go. In your project require the redbox-scan.php (located in the package root). Assuming that Redbox-scan was installed in ./lib/redbox-scan/ your php file would look like this.

```
