Download the PHP package ip-api-io/ipapi-php without Composer

On this page you can find all versions of the php package ip-api-io/ipapi-php. 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 ipapi-php

ip-api-io/ipapi-php — Official PHP client for ip-api.io

Packagist test

The official PHP client for the ip-api.io IP intelligence platform. One client covers IP geolocation, email validation and verification (syntax, MX, SMTP deliverability), fraud detection and risk scoring, VPN/proxy/Tor detection, disposable email detection, ASN lookup, WHOIS, reverse DNS, MX records and domain age.

Zero Composer dependencies — just ext-curl and ext-json.

Install

Quickstart

An API key is required — the API rejects keyless requests with 401. Sign up at ip-api.io for a free key.

Documentation

Each guide documents the methods for one capability, with runnable examples and a link to the matching ip-api.io product page:

Methods

Every method maps to one ip-api.io endpoint and its product page:

Method Endpoint Product page
lookup(?string $ip = null) GET /api/v1/ip[/{ip}] IP geolocation
lookupBatch(array $ips) POST /api/v1/ip/batch (≤100 IPs) Bulk IP lookup
emailInfo(string $email) GET /api/v1/email/{email} Email validation
validateEmail(string $email) GET /api/v1/email/advanced/{email} Advanced email validation
validateEmailBatch(array $emails) POST /api/v1/email/advanced/batch (≤100) Email list cleaning
riskScore(?string $ip = null) GET /api/v1/risk-score[/{ip}] Risk score
emailRiskScore(string $email) GET /api/v1/risk-score/email/{email} Fraud detection
ipReputation(string $ip) GET /api/v1/ip-reputation/{ip} IP reputation
torCheck(string $ip) GET /api/v1/tor/{ip} Tor detection
asn(string $ip) GET /api/v1/asn/{ip} ASN lookup
whois(string $domain) GET /api/v1/dns/whois/{domain} WHOIS lookup
reverseDns(string $ip) GET /api/v1/dns/reverse/{ip} Reverse DNS
forwardDns(string $hostname) GET /api/v1/dns/forward/{hostname}
mxRecords(string $domain) GET /api/v1/dns/mx/{domain} MX record lookup
domainAge(string $domain) GET /api/v1/domain/age/{domain} Domain age checker
domainAgeBatch(array $domains) POST /api/v1/domain/age/batch Domain age checker
rateLimit() GET /api/v1/ratelimit
usageSummary() GET /api/v1/usage/summary

All methods return parsed JSON as associative arrays.

Error handling

The client throws typed exceptions and never retries — on 429, RateLimitError::$reset tells you when your quota renews:

See docs/error-handling.md for the full exception taxonomy.

Links


ip-api-io/ipapi-php is the official client for ip-api.io. It is not affiliated with ip-api.com or ipapi.com.


All versions of ipapi-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-curl Version *
ext-json Version *
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 ip-api-io/ipapi-php contains the following files

Loading the files please wait ...