A simple PHP wrapper for WhatCMS API calls
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.md
composer.json

README.md

WhatCMS PHP API

A simple PHP wrapper for WhatCMS API calls

Installation

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)