|Info||Example||View files (36)||Download .zip||Reputation||Support forum (1)||Blog||Links|
|Ratings||Unique User Downloads||Download Rankings|
|Not enough user ratings||Total: 265||All time: 7,740 This week: 190|
|redbox-scan 1.2||MIT/X Consortium ...||5.3||PHP 5, Databases, Files and Folders, S...|
This package can scan files for new or modified files.
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.
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.
$ composer require redbox/scan
If you download the package from a website (for example github.io or phpclasses.org 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 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.
<?php require 'lib/redbox-scan/redbox-scan.php'; // more of your nice code below
And you are ready use Redbox-scan in your application.
Redbox-scan comes with a large suite of tests that you can run. The packages has 2 test suites you can run its the normal phpunit default test including tests for the FTPAdapter and there is the travis test suite that excludes the FTPAdapter tests. As the travis test suite implies this package has automated builds on trevis-ci.com to make sure the package is stable with every commit. Do not download any code from any branch that has a build failed status because it will not work for you.
The following versions of PHP are supported by this version.
This package is created and maintained by Johnny Mast. If you have any questions feel free to contact me on twitter by using @mastjohnny in your tweet.
Redbox-scan is released under the MIT public license.
Oh and if you've come down this far, you might as well follow me on twitter.
|examples (4 files, 1 directory)|
|src (1 file, 4 directories)|
|tests (8 files, 1 directory)|
|redbox-scan.php||Class||Import this into your projects|
|assets (3 files)|
|Adapter (3 files)|
|Exception (1 file)|
|Filesystem (1 file)|
|Report (2 files)|
|Assets (4 directories)|
|AbstractReportTest.php||Test||Unit test script|
|FileInfoTest.php||Test||Unit test script|
|FilesystemAdapterTest.php||Test||Unit test script|
|FtpAdapterMiscTest.php||Test||Unit test script|
|FtpAdapterTest.php||Test||Unit test script|
|ReportTest.php||Test||Unit test script|
|ScanServiceTest.php||Test||Unit test script|
|Version Control||Unique User Downloads||Download Rankings|
|Applications that use this package|
|Take a look at my GitHub Page|
If you know an application of this package, send a message to the author to add a link here.