Download the PHP package pthreat/ipqs without Composer
On this page you can find all versions of the php package pthreat/ipqs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package ipqs
Short Description IPQualityScore API for PHP
License MIT
Homepage https://github.com/pthreat/ipqs
Informations about the package ipqs
Pthreat IPQS
IPQS (ip quality score) is an API service specialized on fraud metrics for emails, ip addresses and phone numbers.
NOTE: This package is partially based on Jamaloo's IPQS package, this version adds PHP 8.3 support + Guzzle HTTP adapter
Installation
- Download composer
- Run
composer require pthreat/ipqs
- Get API key https://www.ipqualityscore.com/create-account for 5,000 FREE api calls per month
Docker
This package can be run straight with docker compose
Instantiation
The main client lives under IPQS\IPQS, even tho, this is just a convenient class which holsters all other classes It's only purpose is to work as a "factory" for IPQS verification services (Email, Phone and IP).
You can instantiate any of the validators separately if you wish, the constructor signature is the same for all of them.
As you can see, this library allows you to use a custom Guzzle client, so you can have more flexibility when using it, i.e: adding custom headers, etc.
Usable code examples
These examples use the IPQS\IPQS factory, as stated previously you can use this class or instantiate services separately
Email verification IPQS Docs: https://www.ipqualityscore.com/documentation/email-validation-api/overview
Email Verification
Raw email verification response:
IP Verification
IPQS IP Verification documentation: https://www.ipqualityscore.com/documentation/proxy-detection-api/overview
Raw IP verification response:
Phone Verification
Phone verification IPQS Docs: https://www.ipqualityscore.com/documentation/phone-number-validation-api/overview