1. Go to this page and download the library: Download xposedornot/xposedornot-php library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
xposedornot / xposedornot-php example snippets
use XposedOrNot\XposedOrNot;
$client = new XposedOrNot();
// Check if an email has been breached
$result = $client->checkEmail('[email protected]');
if (!empty($result->breaches)) {
echo "Email found in " . count($result->breaches) . " breaches:\n";
foreach ($result->breaches as $breach) {
echo " - {$breach}\n";
}
} else {
echo "Good news! Email not found in any known breaches.\n";
}
use XposedOrNot\XposedOrNot;
use XposedOrNot\Configuration;
// Default configuration (free API)
$client = new XposedOrNot();
// Custom configuration
$config = new Configuration(apiKey: 'your-api-key');
$client = new XposedOrNot($config);
$result = $client->checkPassword('mypassword');
if ($result->count > 0) {
echo "Password has been exposed {$result->count} times.\n";
} else {
echo "Password not found in any known breaches.\n";
}
use XposedOrNot\Configuration;
$config = new Configuration(
baseUrl: 'https://api.xposedornot.com', // Free API base URL
plusBaseUrl: 'https://plus-api.xposedornot.com', // Plus API base URL
passwordBaseUrl: 'https://passwords.xposedornot.com/api', // Password API base URL
timeout: 30, // Request timeout in seconds
maxRetries: 3, // Max retries on 429 (rate limit)
apiKey: null, // API key for Plus API
headers: [], // Custom headers
);
$client = new XposedOrNot($config);
bash
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.