PHP
Latest commit be4e7b5 Dec 1, 2016 Kristian Polso Merge branch 'Triplkrypl-master'
Permalink
Failed to load latest commit information.
src/DetectCMS Intendation Dec 1, 2016
LICENSE Initial commit Nov 13, 2014
README.md Change repo in README Dec 1, 2016
composer.json refactor for composer Nov 28, 2016

README.md

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