whatcms / whatcms-php
A simple PHP wrapper for WhatCMS API calls
Installs: 9 840
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 5
Open Issues: 1
Requires
- php: >=5.5
- guzzlehttp/guzzle: ~6.0
This package is not auto-updated.
Last update: 2025-03-30 07:46:21 UTC
README
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)