| File | Date | Author | Commit |
|---|---|---|---|
| examples | 2025-10-05 |
|
[7b8f98] First version for URL Checker SDK - PHP |
| src | 2025-10-05 |
|
[7b8f98] First version for URL Checker SDK - PHP |
| LICENSE | 2025-10-05 |
|
[7b8f98] First version for URL Checker SDK - PHP |
| README.md | 2025-10-05 |
|
[bf68e6] add Getting an API Key info |
| composer.json | 2025-10-05 |
|
[7b8f98] First version for URL Checker SDK - PHP |
๐ Official SDK for the EmailVeritas URL Checker โ
a real-time phishing and malicious link detection API.
This PHP library provides easy access to the EmailVeritas URL Checker API,
including the /v1/url/lookup and /v1/url/scan endpoints.
๐ก๏ธ Detect and classify phishing URLs, scams, and unsafe redirects directly from your PHP applications.
composer require Email-Veritas/url-checker-php-sdk
Or manually:
git clone https://github.com/Email-Veritas/url-checker-php-sdk.git
cd url-checker-php-sdk
composer install
To use the EmailVeritas URL Checker PHP SDK, you need a valid API key.
You can obtain your API key by signing up or logging into the EmailVeritas Dashboard.
Once logged in, navigate to the API section to generate and manage your API keys.
Keep your API key secure and do not expose it in public repositories.
Set your API key (from EmailVeritas Dashboard)
and call either lookup() or scan() methods.
require 'vendor/autoload.php';
use EmailVeritas\UrlCheckerClient;
$client = new UrlCheckerClient('YOUR_API_KEY');
$response = $client->lookup([
"t.email.currys.co.uk",
"click.convertkit-mail2.com",
"shop.doazmaz.top"
]);
print_r($response);
$client = new UrlCheckerClient('YOUR_API_KEY');
$response = $client->scan(
['https://google.com'],
webPageInfo: true,
htmlContent: true,
whois: true
);
print_r($response);
/v1/url/lookupChecks if a domain or URL is known as legitimate, phishing, or needs scanning.
Example cURL:
curl --request POST \
--url https://openai.emailveritas.com/v1/url/lookup \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'apikey: YOUR_API_KEY' \
--data '{
"urls": [
"t.email.currys.co.uk",
"click.convertkit-mail2.com",
"shop.doazmaz.top"
]
}'
/v1/url/scanPerforms full scan including WHOIS, redirects, and HTML metadata.
Example cURL:
curl --request POST \
--url https://openai.emailveritas.com/v1/url/scan \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'apikey: YOUR_API_KEY' \
--data '{
"urls": ["google.com"],
"web_page_info": true,
"html_content": true,
"whois": true
}'
{
"message": "Success",
"cod": "200",
"legitimate": ["google.com"],
"phishing": ["shop.doazmaz.top"],
"need_to_scan": ["t.email.currys.co.uk"]
}
{
"message": "Success",
"cod": "200",
"urls": [
{
"url": "google.com",
"domain": "google.com",
"classification": "legitimate",
"data": {
"analysis": [
{
"summary": "Safe website",
"analysis_date": "2025-10-05T12:00:00Z",
"redirection_chain": ["http://google.com", "https://www.google.com/"]
}
]
}
}
]
}
The SDK throws \RuntimeException on:
- Network or timeout errors
- Invalid or non-JSON responses
- Missing or invalid API key
Wrap API calls in a try/catch block for production use.
Pull requests and issues are welcome.
Follow PSR-12 style and ensure all code passes tests before submitting a PR.
feat/my-feature) Released under the MIT License.
ยฉ EmailVeritas Security Technologies Ltd.
For integration help or enterprise plans:
๐ง support@emailveritas.com
๐ https://www.emailveritas.com/url-checker