rocramer / Detect-CMS

PHP Library for detecting CMS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Detect-CMS

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

About

PHP Library for detecting CMS

License:MIT License


Languages

Language:PHP 100.0%