plesk / wappspector
命令行界面工具,用于分析托管服务器的文件结构,并识别在其上托管的网站所使用的框架和CMS。
0.2.6
2024-05-14 11:54 UTC
Requires
- php: >=8.0
- league/flysystem: ^3.0
- php-di/php-di: ^6.0
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^10
- psr/log: ^2.0
- rector/rector: ^1.0
- slevomat/coding-standard: ^8.8.0
- squizlabs/php_codesniffer: ^3.7.2
- symfony/console: ^5.0
README
命令行界面工具,用于分析托管服务器的文件结构,并识别在其上托管的网站所使用的框架和CMS。
匹配器
技术与框架
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