playboxtech / detect-cms
此包的最新版本(0.5)没有可用的许可证信息。
用于检测CMS的PHP库。
0.5
2024-07-15 22:41 UTC
This package is auto-updated.
Last update: 2024-09-15 23:24:37 UTC
README
用于检测CMS的PHP库
安装
composer require playboxtech/detect-cms:dev-master
基于
This is based on https://github.com/Krisseck/Detect-CMS as the author has stopped updating his, decided to pick up where he left off.
更新时间
Updated the [PHP Simple HTML DOM Parser](https://sourceforge.net/projects/simplehtmldom/) from version 0.5 to 1.91 as it was having issues with newer versions of PHP.
Added detection for GravCMS
待办事项
Further update detection to use new built in PHP functions so no longer need to depend on external library.
Detect additional types of CMS
如何使用
include(__DIR__ . "/vendor/autoload.php");
$domain = "http://google.com";
$cms = new \DetectCMS\DetectCMS($domain);
if($cms->getResult()) {
echo "Detected CMS: ".$cms->getResult();
} else {
echo "CMS couldn't be detected";
}