PHP SDK
Official PHP client library for CyberAPI.
Installation
Via Composer (Recommended)
bash
composer require cyberapi/sdkNote: If package is not yet on Packagist, use the manual method below.
Manual Installation
- Download
CyberAPI.php - Include it in your script:
php
require_once 'path/to/CyberAPI.php';Usage
php
use CyberAPI\CyberAPI;
$client = new CyberAPI('your_api_key');
try {
$result = $client->check('example.com');
if ($result['risk_score'] > 75) {
echo "High Risk Detected!";
}
} catch (Exception $e) {
echo "Error: " . $e->getMessage();
}