PHPackages                             wslibs/php-monitor-file - 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. [Security](/categories/security)
4. /
5. wslibs/php-monitor-file

ActiveLibrary[Security](/categories/security)

wslibs/php-monitor-file
=======================

PHP实现的网站挂马监视器

v0.0.5(5y ago)314Apache-2.0PHPPHP &gt;=7.0.0

Since Jul 23Pushed 5y agoCompare

[ Source](https://github.com/songyangphp/php-monitor-file)[ Packagist](https://packagist.org/packages/wslibs/php-monitor-file)[ RSS](/packages/wslibs-php-monitor-file/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (6)Used By (0)

\[toc\]

PHP实现的网站挂马监视器：
--------------

[](#php实现的网站挂马监视器)

此工具应用于服务器web项目的文件变化监测，一旦服务器文件被恶意篡改，可以及时知晓做出处理

### 一，检测文件变化

[](#一检测文件变化)

```
require_once __DIR__ . '/vendor/autoload.php';
use wslibs\php_monitor_file\MonitorFile;

$files = [__DIR__.DIRECTORY_SEPARATOR."test",  __DIR__.DIRECTORY_SEPARATOR."test1"];
/*
    ps:建议加入定时任务，定期执行，执行结果可以去日志目录查看，短信通知，邮件通知等功能可以自行拓展

    $dirs array : 要监控的文件目录
    $log_dir string : 存放监控日志的目录
    $type int : 1:文件md5检测法 2:git检测法
    $_ignore_files_array array : 屏蔽的日志文件
*/
MonitorFile::start($files , __DIR__.DIRECTORY_SEPARATOR."log",1/*,['apidoc.json']*/);
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~55 days

Total

5

Last Release

1899d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d1eadf3df7c537739e6c0ac7087f1b39fe296df638e3015871cf0013ec9ba6ac?d=identicon)[songyangphp](/maintainers/songyangphp)

---

Top Contributors

[![songyangphp](https://avatars.githubusercontent.com/u/30816362?v=4)](https://github.com/songyangphp "songyangphp (9 commits)")

### Embed Badge

![Health badge](/badges/wslibs-php-monitor-file/health.svg)

```
[![Health](https://phpackages.com/badges/wslibs-php-monitor-file/health.svg)](https://phpackages.com/packages/wslibs-php-monitor-file)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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