From fbff2a224cdf75b5d11fd1b1446c58d137e123da Mon Sep 17 00:00:00 2001 From: Gabor Gyorvari Date: Wed, 4 Apr 2018 10:20:41 +0200 Subject: [PATCH] Added binary script to composer and referring to global install --- README.md | 2 +- composer.json | 6 ++++-- scan | 4 ++++ 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100755 scan diff --git a/README.md b/README.md index 61a4dfd..6ea71f0 100644 --- a/README.md +++ b/README.md @@ -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? ----------- diff --git a/composer.json b/composer.json index b9ea7fe..61cd1b8 100644 --- a/composer.json +++ b/composer.json @@ -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"] } diff --git a/scan b/scan new file mode 100755 index 0000000..5b49a48 --- /dev/null +++ b/scan @@ -0,0 +1,4 @@ +#!/usr/bin/env php +