Skip to content

A simple PHP wrapper for WhatCMS API calls

Notifications You must be signed in to change notification settings

itomic/whatcms-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

A simple PHP wrapper for WhatCMS API calls

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%