Download the PHP package trustip/trustip without Composer
On this page you can find all versions of the php package trustip/trustip. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download trustip/trustip
More information about trustip/trustip
Files in trustip/trustip
Package trustip
Short Description A Laravel package from Trustip.io for VPN and Proxy detection, it allows you to check if an IP address is a Proxy, VPN, TOR, Hosting, Bad search engine robots or not.
License MIT
Homepage https://trustip.io
Informations about the package trustip
Trustip - VPN & Proxy Detection
A Laravel package for VPN & Proxy Detection by Trustip.io
Installation
You can install the package via composer:
You need to set TRUSTIP_API_KEY
in your .env
file before using the package. You can get the API key from Trustip.io
You can publish the config file with:
Or create the config file config/trustip.php and add this code:
Usage
You can start using Trustip
facade :
After that, you should get an output similar to this:
If the IP is proxy the is_proxy
will be true
if not it will be false
you can read more at https://docs.trustip.io
If there's an error, the output will be similar to this:
Check all errors on https://docs.trustip.io.
You can also use the isIpProxy
helper function in your controllers or other classes:
The
isIpProxy
will return false if the check method throws an exception or returns an error
Exceptions
Trustip\Trustip\Exceptions\MissingApiKeyException
is thrown if the api key is not found in the env file.Trustip\Trustip\Exceptions\InvalidIpAddressException
is thrown if the ip address passed to the check method is invalid
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Trustip.io
- All Contributors
License
The MIT License (MIT). Please see License File for more information.