phpmussel/web 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

phpmussel/web

最新稳定版本:v3.6.1

Composer 安装命令:

composer require phpmussel/web

包简介

phpMussel upload handler

README 文档

README

v1: PHP >= 5.4 < 8.4 v2: PHP >= 7.2 < 8.4 v3: PHP >= 7.2 License: GPL v2 PRs Welcome

What is phpMussel?

An ideal solution for shared hosting environments, where it's often not possible to utilise or install conventional anti-virus protection solutions, phpMussel is a PHP script designed to detect trojans, viruses, malware and other threats within files uploaded to your system wherever the script is hooked, based on the signatures of ClamAV and others.

What's this repository for?

This provides automatic file upload scanning to your website.

composer require phpmussel/web 

Example:

<?php // Path to vendor directory. $Vendor = __DIR__ . DIRECTORY_SEPARATOR . 'vendor'; // Composer's autoloader. require $Vendor . DIRECTORY_SEPARATOR . 'autoload.php'; $Loader = new \phpMussel\Core\Loader(); $Scanner = new \phpMussel\Core\Scanner($Loader); $Web = new \phpMussel\Web\Web($Loader, $Scanner); $Loader->Events->addHandler('sendMail', new \phpMussel\PHPMailer\Linker($Loader)); // Scans file uploads (execution terminates here if the scan finds anything). $Web->scan(); // Fixes possible corrupted file upload names (Warning: modifies the content of $_FILES). $Web->demojibakefier(); // Cleanup. unset($Web, $Scanner, $Loader); ?><html> <form enctype="multipart/form-data" name="upload" action="" method="post"> <div class="spanner"> <input type="file" name="upload_test[]" value="" /> <input type="submit" value="OK" /> </div> </form> </html>

(And, after using that form to try uploading ascii_standard_testfile.txt, a benign sample provided for the sole purpose of testing phpMussel)…

Screenshot: Screenshot

Documentation:

See also:

Last Updated: 1 July 2024 (2024.07.01).

统计信息

  • 总下载量: 71.73k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 2
  • 依赖项目数: 2
  • 推荐数: 1

GitHub 信息

  • Stars: 5
  • Watchers: 3
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固