jezzdk/detect-cms

There is no license information available for the latest version (1.0.2) of this package.

PHP Library for detecting CMS

1.0.2 2019-08-27 11:40 UTC

This package is auto-updated.

Last update: 2024-12-14 03:15:48 UTC


README

PHP Library for detecting CMS

Install

Add to your composer.json

{
    "repositories":[
        {
            "type": "vcs",
            "url": "git@github.com:Krisseck/Detect-CMS.git"
        }
    ],
    "require":{
        "Detect-CMS":"1.0.*"
    }
}

How to use:

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";
}