plesk/wappspector

命令行界面工具,用于分析托管服务器的文件结构,并识别在其上托管的网站所使用的框架和CMS。

安装数: 5,301

依赖项: 0

建议者: 0

安全: 0

星标: 11

关注者: 21

分支: 0

开放问题: 0

类型:项目

0.2.6 2024-05-14 11:54 UTC

This package is not auto-updated.

Last update: 2024-09-17 13:29:04 UTC


README

命令行界面工具,用于分析托管服务器的文件结构,并识别在其上托管的网站所使用的框架和CMS。

unit-test

匹配器

技术与框架

CMS

如何构建phar

composer global require clue/phar-composer
composer install
php -d phar.readonly=off ~/.composer/vendor/bin/phar-composer build .

运行创建的 wappspector.phar

./wappspector.phar ./test-data

更改匹配器顺序

要更改匹配器顺序或禁用其中一些,您应该覆盖DI容器中的matchers条目。

$diContainer = \Plesk\Wappspector\DIContainer::build();
$matchers = $diContainer->get('matchers');
array_unshift($matchers, \Some\New\Matcher::class);
$diContainer->set('matchers', $matchers);

// only detect WordPress installs
$diContainer = \Plesk\Wappspector\DIContainer::build();
$diContainer->set('matchers', [\Plesk\Wappspector\Matchers\Wordpress::class]);

测试

./vendor/bin/phpunit