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.

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 php

PHP Library for IP Address Geolocation, Timezone, Currency & other information.

Latest Version on Packagist Tests Total Downloads

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:

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

License

The Apache License. Please see License File for more information.


All versions of php with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
symfony/cache Version 4.4.15
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 ipsquads/php contains the following files

Loading the files please wait ....