PHPackages                             ollyxar/php-malware-detector - 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. [CLI &amp; Console](/categories/cli)
4. /
5. ollyxar/php-malware-detector

ActiveLibrary[CLI &amp; Console](/categories/cli)

ollyxar/php-malware-detector
============================

PHP malware detector

1.0.1(7y ago)12926.4k↓24.1%15MITPHPPHP &gt;=5.4

Since Feb 28Pushed 7y ago9 watchersCompare

[ Source](https://github.com/ollyxar/php-malware-detector)[ Packagist](https://packagist.org/packages/ollyxar/php-malware-detector)[ Docs](https://github.com/ollyxar/php-malware-detector)[ RSS](/packages/ollyxar-php-malware-detector/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

PHP malware detector
====================

[](#php-malware-detector)

[![Build Status](https://camo.githubusercontent.com/e8220f519fd182a00b62fa04b26602409b25e5421201f4b291e57befe3f23bab/68747470733a2f2f7472617669732d63692e6f72672f6f6c6c797861722f7068702d6d616c776172652d6465746563746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ollyxar/php-malware-detector)[![Version](https://camo.githubusercontent.com/3e5471c20588c336724296aae1febbd62c61ec053868597b7f3ae5054abcd98f/68747470733a2f2f706f7365722e707567782e6f72672f6f6c6c797861722f7068702d6d616c776172652d6465746563746f722f762f737461626c652e737667)](https://camo.githubusercontent.com/3e5471c20588c336724296aae1febbd62c61ec053868597b7f3ae5054abcd98f/68747470733a2f2f706f7365722e707567782e6f72672f6f6c6c797861722f7068702d6d616c776172652d6465746563746f722f762f737461626c652e737667)[![Downloads](https://camo.githubusercontent.com/3e2cf80f8e59748978c7fc0e4498ebd79b12769bb996ed580da2eaedac19d558/68747470733a2f2f706f7365722e707567782e6f72672f6f6c6c797861722f7068702d6d616c776172652d6465746563746f722f642f746f74616c2e737667)](https://camo.githubusercontent.com/3e2cf80f8e59748978c7fc0e4498ebd79b12769bb996ed580da2eaedac19d558/68747470733a2f2f706f7365722e707567782e6f72672f6f6c6c797861722f7068702d6d616c776172652d6465746563746f722f642f746f74616c2e737667)[![License](https://camo.githubusercontent.com/9fc74079686a398bafaf123529c6a2e13997690ae433b949ce0350533a32be1a/68747470733a2f2f706f7365722e707567782e6f72672f6f6c6c797861722f7068702d6d616c776172652d6465746563746f722f6c6963656e73652e737667)](https://camo.githubusercontent.com/9fc74079686a398bafaf123529c6a2e13997690ae433b949ce0350533a32be1a/68747470733a2f2f706f7365722e707567782e6f72672f6f6c6c797861722f7068702d6d616c776172652d6465746563746f722f6c6963656e73652e737667)

Smart PHP vulnerability detector
--------------------------------

[](#smart-php-vulnerability-detector)

Web mode:

[![ollyxar php-malware-detector](https://camo.githubusercontent.com/52a624c97b26a032ce3edf5589fdd41e5071854eed65dd6b6ebc7e0f2076a6b5/68747470733a2f2f692e696d6775722e636f6d2f6f676c554570722e6a7067)](https://camo.githubusercontent.com/52a624c97b26a032ce3edf5589fdd41e5071854eed65dd6b6ebc7e0f2076a6b5/68747470733a2f2f692e696d6775722e636f6d2f6f676c554570722e6a7067)

Console mode:

[![chat](https://camo.githubusercontent.com/e552e249769c56efa70fdd9b34239825c9ad18c2c7a7938450923b68f858ea5d/68747470733a2f2f692e696d6775722e636f6d2f564a34353438772e6a7067)](https://camo.githubusercontent.com/e552e249769c56efa70fdd9b34239825c9ad18c2c7a7938450923b68f858ea5d/68747470733a2f2f692e696d6775722e636f6d2f564a34353438772e6a7067)

Using PHP malware detector
--------------------------

[](#using-php-malware-detector)

### Requirements

[](#requirements)

- PHP 5.4+

### Install php-malware-detector via [composer](http://getcomposer.org).

[](#install-php-malware-detector-via-composer)

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

Next, run the Composer command to install the latest stable version of php-malware-detector:

```
php composer.phar require ollyxar/php-malware-detector
```

After installing, you need to require Composer's autoloader and run scan:

```
require 'vendor/autoload.php';

(new Scanner())->run();
```

### Using php-malware-detector in Web-mode:

[](#using-php-malware-detector-in-web-mode)

Put scanner.php in the web-root directory on the web-server and open your website in the browser (like )

### Using php-malware-detector in Cron-mode:

[](#using-php-malware-detector-in-cron-mode)

You can schedule scanning process. To do that you have to add commend:

```
php /path_to/scanner.php > "log.txt"
```

### Additional parameters for scanner:

[](#additional-parameters-for-scanner)

```
// First parameter is a scan directory
// Second parameter is an array of file extensions to scan
(new Scanner('/var/some_other_direcrory_to_scan'), ['php', 'txt', 'php5'])->run();
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~293 days

Total

2

Last Release

2708d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/94a445da70d70ada49f927d76cb247d3df7a6b4cafc5bd78abcd559d73d76e7c?d=identicon)[alexslipknot](/maintainers/alexslipknot)

---

Top Contributors

[![alexslipknot](https://avatars.githubusercontent.com/u/8543759?v=4)](https://github.com/alexslipknot "alexslipknot (4 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

anti-malwareantivirusphpshell-detectorvulnerability-scannersphpshelllibraryscanneranti virusmalware

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ollyxar-php-malware-detector/health.svg)

```
[![Health](https://phpackages.com/badges/ollyxar-php-malware-detector/health.svg)](https://phpackages.com/packages/ollyxar-php-malware-detector)
```

###  Alternatives

[marcocesarato/amwscan

AMWSCAN (Antimalware Scanner) is a php antimalware/antivirus scanner console script written in php for scan your project. This can work on php projects and a lot of others platform.

75317.8k1](/packages/marcocesarato-amwscan)[seregazhuk/php-watcher

Automatically restart PHP application once the source code changes

394137.8k4](/packages/seregazhuk-php-watcher)[alecrabbit/php-console-spinner

Extremely flexible spinner for \[async\] php cli applications

24032.0k2](/packages/alecrabbit-php-console-spinner)[dawood/phpchromepdf

A slim PHP wrapper around google-chrome to convert url to pdf or to take screenshots , easy to use and clean OOP interface

14980.5k](/packages/dawood-phpchromepdf)[jyxo/php

Jyxo PHP Library

6460.8k](/packages/jyxo-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
