Added binary script to composer and referring to global install

This commit is contained in:
Gabor Gyorvari
2018-04-04 10:20:41 +02:00
parent 726b9ce78b
commit fbff2a224c
3 changed files with 9 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ The goal is to find infected files and fight against kiddies, because to easy to
How to install? How to install?
--- ---
Simply clone the repository or use `composer require scr34m/php-malware-scanner` to do it. Simply clone the repository or with composer install globally `composer global require scr34m/php-malware-scanner`.
How to use? How to use?
----------- -----------

View File

@@ -6,8 +6,10 @@
"license": "GPL-3.0", "license": "GPL-3.0",
"homepage": "https://github.com/scr34m/php-malware-scanner", "homepage": "https://github.com/scr34m/php-malware-scanner",
"require": { "require": {
"php": ">=5.2.0" "php": ">=5.2.0",
"scr34m/php-malware-scanner": "@dev"
}, },
"autoload": { "autoload": {
} },
"bin": ["scan"]
} }

4
scan Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env php
<?php
require_once __DIR__.'/scan.php';
new MalwareScanner();