PHP
Switch branches/tags
Nothing to show
Clone or download
Latest commit 1583a2a Jun 18, 2018
Permalink
Failed to load latest commit information.
src/DetectCMS Added Laravel Jun 18, 2018
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";
}