Download the PHP package ipqualityscore/ipqs-php-db-reader without Composer

On this page you can find all versions of the php package ipqualityscore/ipqs-php-db-reader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ipqs-php-db-reader

IPQualityScore IP Address Reputation & Proxy Detection PHP DB Reader

Flat File Version 1.0

The IPQS PHP DB reader allows you to read our flat file databases and get started implimenting our proxy detection easily.

You can find the full PHP IPQualityScore flat file database documentation here or view a description of what our proxy detection database does here.
Installation

Installation can be achieved via composer or via manual inclusion in any PSR0/4 autoloader.


composer require ipqualityscore/ipqs-php-db-reader
            
Usage

Using our flat file database system to lookup an IP address is simple:


use IPQualityScore\DB\DBReader;

$ip = "8.8.0.0";

$reader = new DBReader("IPQualityScore-Reputation-IPV4-Database.ipqs");

$record = $reader->Fetch($ip);
if($record->IsProxy()){
    echo "{$ip} is a proxy!";
}
            
IPQSRecord Fields:

Depending on which database file you receive some of these fields may be unavailable. If the field in question is unavailable in your database it will default to null.

Field Type Description
$record->IsProxy() bool Is this IP address suspected to be a proxy? (SOCKS, Elite, Anonymous, VPN, Tor, etc.)
$record->IsVPN() bool Is this IP suspected of being a VPN connection? This can include data center ranges which can become active VPNs at any time. The "proxy" status will always be true when this value is true.
$record->IsTOR() bool Is this IP suspected of being a TOR connection? This can include previously active TOR nodes and exits which can become active TOR exits at any time. The "proxy" status will always be true when this value is true.
$record->IsCrawler() bool Is this IP associated with being a confirmed crawler from a mainstream search engine such as Googlebot, Bingbot, Yandex, etc. based on hostname or IP address verification.
$record->IsBot() bool Indicates if bots or non-human traffic has recently used this IP address to engage in automated fraudulent behavior. Provides stronger confidence that the IP address is suspicious.
$record->RecentAbuse() bool This value will indicate if there has been any recently verified abuse across our network for this IP address. Abuse could be a confirmed chargeback, compromised device, fake app install, or similar malicious behavior within the past few days.
$record->IsBlacklisted() bool This value will indicate if the IP has been blacklisted by any 3rd party agency for spam, abuse or fraud.
$record->IsPrivate() bool This value will indicate if the IP is a private, nonrouteable IP address.
$record->IsMobile() bool This value will indicate if the IP is likely owned by a mobile carrier.
$record->HasOpenPorts() bool This value will indicate if the IP has recently had open (listening) ports.
$record->IsHostingProvider() bool This value will indicate if the IP is likely owned by a hosting provider or is leased to a hosting company.
$record->ActiveVPN() bool Identifies active VPN connections used by popular VPN services and private VPN servers.
$record->ActiveTOR() bool Identifies active TOR exits on the TOR network.
$record->PublicAccessPoint() bool Indicates if this IP is likely to be a public access point such as a coffee shop, college or library.
$record->ConnectionTypeRaw() int

A numerical representation for the suspected type of connection for this IP address. It is generally reccomended you call the ConnectionType() function listed below instead of using this value, but it is available as an option.

# Enum Description
1 Residential IP
2 Mobile IP
3 Corporate IP
4 Data Center IP
5 Educational IP
$record->ConnectionType() int

A string representation for the suspected type of connection for this IP address. (Residential, Mobile, Corporate, Data Center, Education or Unknown)

$record->AbuseVelocityRaw() int

How frequently the IP address is engaging in abuse across the IPQS threat network. Can be used in combination with the Fraud Score to identify bad behavior. It is generally reccomended you call the AbuseVelocity() function listed below instead of using this value, but it is available as an option.

# Enum Description
1 Low Recent Abuse IP
2 Medium Recent Abuse IP
3 High Recent Abuse IP
$record->AbuseVelocity() int

How frequently the IP address is engaging in abuse across the IPQS threat network. Values can be "high", "medium", "low", or "none".

$record->Country() string

Two character country code of IP address or "N/A" if unknown.

$record->City() string

City of IP address if available or "N/A" if unknown.

$record->ISP() string

ISP if one is known. Otherwise "N/A".

$record->Organization() string

Organization if one is known. Can be parent company or sub company of the listed ISP. Otherwise "N/A".

$record->ASN() int

Autonomous System Number if one is known. Zero if nonexistent.

$record->Timezone() string

Timezone of IP address if available or "N/A" if unknown.

$record->Latitude() float32

Latitude of IP address if available or 0.00 if unknown.

$record->Longitude() float32

Longitude of IP address if available or 0.00 if unknown.

$record->FraudScore($strictness) int

Returns the fraud score for the "strictness level" specified and can be 0, 1 or 2. Some databases may contain 1 entry, others all 3. It is reccomended that you use the lowest strictness for Fraud Scoring. Increasing this value will expand the tests we perform. Levels 2+ have a higher risk of false-positives.

Usage Notes

Each database only holds either IPv4 or IPv6 data. Therefore you may need two instances of the reader available depending on your use case.


All versions of ipqs-php-db-reader with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ipqualityscore/ipqs-php-db-reader contains the following files

Loading the files please wait ....