{"id":42127716,"url":"https://github.com/sudiptpa/ipstack","last_synced_at":"2026-01-26T15:12:38.826Z","repository":{"id":54931056,"uuid":"139972809","full_name":"sudiptpa/ipstack","owner":"sudiptpa","description":"A minimal implementation of IP to Location solution for small to large scale applications.","archived":false,"fork":false,"pushed_at":"2021-01-20T22:20:58.000Z","size":29,"stargazers_count":4,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-09T03:10:01.904Z","etag":null,"topics":["geolocation","geolocation-api","ip"],"latest_commit_sha":null,"homepage":"https://sujipthapa.co/blog/a-simple-ip-to-geo-location-solution-for-php","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sudiptpa.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-06T10:51:56.000Z","updated_at":"2024-02-12T04:13:38.000Z","dependencies_parsed_at":"2022-08-14T06:50:45.812Z","dependency_job_id":null,"html_url":"https://github.com/sudiptpa/ipstack","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/sudiptpa/ipstack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudiptpa%2Fipstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudiptpa%2Fipstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudiptpa%2Fipstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudiptpa%2Fipstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sudiptpa","download_url":"https://codeload.github.com/sudiptpa/ipstack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudiptpa%2Fipstack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28781308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T13:55:28.044Z","status":"ssl_error","status_checked_at":"2026-01-26T13:55:26.068Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["geolocation","geolocation-api","ip"],"created_at":"2026-01-26T15:12:38.765Z","updated_at":"2026-01-26T15:12:38.814Z","avatar_url":"https://github.com/sudiptpa.png","language":"PHP","readme":"## A Simple Package for IP to Location implementation with PHP using real-time API service through https://ipstack.com.\n\n[![Build Status](https://travis-ci.com/sudiptpa/ipstack.svg?branch=master)](https://travis-ci.com/sudiptpa/ipstack)\n[![Latest Stable Version](https://poser.pugx.org/sudiptpa/ipstack/v/stable)](https://packagist.org/packages/sudiptpa/ipstack)\n[![Total Downloads](https://poser.pugx.org/sudiptpa/ipstack/downloads)](https://packagist.org/packages/sudiptpa/ipstack)\n[![License](https://poser.pugx.org/sudiptpa/ipstack/license)](https://packagist.org/packages/sudiptpa/ipstack)\n\nhttps://ipstack.com provides a public HTTP API for software developers to search the geolocation of IP addresses. It uses a database of IP addresses that are associated to cities along with other relevant information like time zone, latitude and longitude.\n\nYou're allowed up to 10,000 queries per month by default. Once this limit is reached, all of your requests will result in HTTP 403, forbidden, until your quota is cleared.\n\nThe ipstack is an API service which enable you to locate and identify website visitors at a stage before any data is entered into your system. The data received from the API can be used to enhance user experiences based on location data and assess risks and potential threats to your web application in time.\n\n### Installation\n\nYou can install the package via composer: [Composer](http://getcomposer.org/).\n\n```\ncomposer require sudiptpa/ipstack\n```\n\nAnd run composer to update your dependencies:\n\n    $ curl -s http://getcomposer.org/installer | php\n    $ php composer.phar update\n\n### Usage\n\nThis package only supports `json` format for now.\n\nHere are a few examples on how you can use the package:\n\n#### Free\n\n```php\n    $ipstack = new Sujip\\Ipstack\\Ipstack($ip);\n\n    $ipstack-\u003ecountry();\n\n    $ipstack-\u003ecity();\n\n    $ipstack-\u003eregion();\n```\n\n#### Using API Key\n\n```php\n    $ipstack = new Sujip\\Ipstack\\Ipstack($ip, $api_key);\n\n    $ipstack-\u003eformatted();\n```\n\n#### Premium Membership\n\nIf you have a paid membership with https://ipstack.com and want to make API call with HTTPS mode, you can call -\u003esecure() method.\n\n```php\n    $ipstack = (new Sujip\\Ipstack\\Ipstack($ip, $api_key))-\u003esecure();\n\n    $ipstack-\u003eformatted();\n```\n\nAlso have a look in the [source code of `Sujip\\Ipstack\\Ipstack`](https://github.com/sudiptpa/ipstack/blob/master/src/Ipstack.php) to discover the methods you can use.\n\n### Changelog\n\nPlease see [CHANGELOG](https://github.com/sudiptpa/ipstack/blob/master/CHANGELOG.md) for more information what has changed recently.\n\n### Contributing\n\nContributions are **welcome** and will be fully **credited**.\n\nContributions can be made via a Pull Request on [Github](https://github.com/sudiptpa/ipstack).\n\n\n### Testing\n\n```\n  $ composer test\n ```\n\n### Support\n\nIf you are having general issues with the package, feel free to drop me and email [sudiptpa@gmail.com](mailto:sudiptpa@gmail.com)\n\nIf you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/sudiptpa/ipstack/issues),\nor better yet, fork the library and submit a pull request.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudiptpa%2Fipstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsudiptpa%2Fipstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudiptpa%2Fipstack/lists"}