PHP Library for detecting CMS
Add to your composer.json
{
"repositories":[
{
"type": "vcs",
"url": "[email protected]:Krisseck/Detect-CMS.git"
}
],
"require":{
"Detect-CMS":"1.0.*"
}
}
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";
}