A simple PHP wrapper for WhatCMS API calls
We recommended installing whatcms-php through Composer.
# Install Composer
curl -sS https://getcomposer.org/installer | php
Next, run the Composer command to install the latest stable version of WhatCMS:
php composer.phar require whatcms/whatcms-php
Once installed, you can use the WhatCMS class to fetch results:
require 'vendor/autoload.php';
$key = 'Your API Key';
$detector = new \WhatCMS\WhatCMS($key);
$check_url = 'en.wikipedia.org';
$result = $detector->CheckUrl($check_url);
print_r($result)