Download the PHP package ipsquads/php without Composer
On this page you can find all versions of the php package ipsquads/php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package php
Short Description IPSquads official PHP library for IP Address Geolocation, Timezone, Currency, Network & other information.
License MIT
Homepage https://github.com/ipsquads/php
Informations about the package php
PHP Library for IP Address Geolocation, Timezone, Currency & other information.
IPSquads PHP library for IP Address Geolocation, Timezone, Currency & other information.
How companies are using IP Squads API?
IPSquads is helping many companies & organizations for various use-cases:
- Content Localization
- Analytics
- Fraud Prevention
- Targeted online advertising
- Geographic rights management
Getting Started
By default, requests are throttled at 20 requests per minute if access key is not passed. You can remove this throttle limit by getting a FREE access key through which you can make 1000 unthrottled requests per day.
If you are a non-profit organization, you may request to increase this limit. You can drop us a mail at [email protected].
If you would like to upgrade for more than 1000 requests per day, you may select the plan here: https://ipsquads.com/product/
Installation
In-order to get started,
You can install the package via composer:
Usage
To get all the details of an IP Address.
JSON Representation
To get only the currency details
If you are interested in only currency details, you can use the below method.
To get only the timezone details
If you are interested in only getting the timezone details of a visitor based on the IP Address, you can do that using the below method.
To get only the network details
If you are only looking for the network details of an IP Address, you can do using the below method.
Caching
By default, any result returned from IPSquads server are cached for quick access & prevent you from using more credits unnecessarily.
Under the hood, this SDK uses symfony/cache library for caching.
The default TTL of cache is 3600 seconds. If you would like to increase or decrease this limit, you can do so by modifying the way IPSquads is getting initialized.
Cache adapter
As a default, FilesystemAdapter cache is used. If you would like to use any other adapter of symfony/cache library, you can do so by passing the instance of a Cache Adapter. To check the available cache adapters, click here.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Sdklab007
- All Contributors
License
The Apache License. Please see License File for more information.