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
+1 -1
View File
@@ -7,7 +7,7 @@ The goal is to find infected files and fight against kiddies, because to easy to
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?
-----------
+4 -2
View File
@@ -6,8 +6,10 @@
"license": "GPL-3.0",
"homepage": "https://github.com/scr34m/php-malware-scanner",
"require": {
"php": ">=5.2.0"
"php": ">=5.2.0",
"scr34m/php-malware-scanner": "@dev"
},
"autoload": {
}
},
"bin": ["scan"]
}
Executable
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env php
<?php
require_once __DIR__.'/scan.php';
new MalwareScanner();