playboxtech/detect-cms

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

PHP Library for detecting CMS.

0.5 2024-07-15 22:41 UTC

This package is auto-updated.

Last update: 2024-11-15 23:45:39 UTC


README

PHP Library for detecting CMS

Install

composer require playboxtech/detect-cms:dev-master

Based On:

This is based on https://github.com/Krisseck/Detect-CMS as the author has stopped updating his, decided to pick up where he left off. 

Updated:

Updated the [PHP Simple HTML DOM Parser](https://sourceforge.net/projects/simplehtmldom/) from version 0.5 to 1.91 as it was having issues with newer versions of PHP.
Added detection for GravCMS

TO DO:

Further update detection to use new built in PHP functions so no longer need to depend on external library. 
Detect additional types of CMS

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