{"id":21177475,"url":"https://github.com/betsol/ipgeobase-client","last_synced_at":"2026-04-28T09:32:12.304Z","repository":{"id":21899263,"uuid":"25223213","full_name":"betsol/ipgeobase-client","owner":"betsol","description":"PHP client library for IpGeoBase XML API","archived":false,"fork":false,"pushed_at":"2014-10-14T21:46:57.000Z","size":208,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T01:04:11.087Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/betsol.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-14T19:36:22.000Z","updated_at":"2014-10-14T21:31:04.000Z","dependencies_parsed_at":"2022-07-25T13:02:12.238Z","dependency_job_id":null,"html_url":"https://github.com/betsol/ipgeobase-client","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/betsol/ipgeobase-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betsol%2Fipgeobase-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betsol%2Fipgeobase-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betsol%2Fipgeobase-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betsol%2Fipgeobase-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/betsol","download_url":"https://codeload.github.com/betsol/ipgeobase-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/betsol%2Fipgeobase-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32375325,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T09:24:15.638Z","status":"ssl_error","status_checked_at":"2026-04-28T09:24:15.071Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-11-20T17:16:12.488Z","updated_at":"2026-04-28T09:32:12.257Z","avatar_url":"https://github.com/betsol.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IpGeoBase API Client\n\n[![Latest Stable Version](https://poser.pugx.org/betsol/ipgeobase-client/v/stable.svg)](https://packagist.org/packages/betsol/ipgeobase-client)\n[![License](https://poser.pugx.org/betsol/ipgeobase-client/license.svg)](https://packagist.org/packages/betsol/ipgeobase-client)\n\n## Description\n\nThis library for *PHP 5* provides you with convenient object-oriented access\nto [IPGeoBase][ipgeobase] XML API.\n\n*IpGeoBase* is a free service that allows you to resolve Russian and Ukrainian\nIP adresses into geographical locations with the maximum precision of a city.\nDatabase has a daily updates.\n\n### Features\n\n- Uses latest [Guzzle 5][guzzle] library to communicate over HTTP\n- [PSR standards][psr-standards] compliant\n- Supports [Composer][composer]\n- Returns response in convenient and easy to use [models][models]\n- Provides distinguishable catchable [exceptions][exceptions]\n- Available for commercial products for free ([MIT license](#license))\n\n## Installation\n\nInstall library with *Composer*:\n\n`composer require betsol/ipgeobase-client`\n\n## Usage\n\n```php\n\n// Creating a client:\n$ipGeoBaseClient = new Betsol\\IpGeoBase\\Api\\Client;\n\n// You can pass API's base URL to it if required:\n$ipGeoBaseClient = new Betsol\\IpGeoBase\\Api\\Client('http://ipgeobase.ru:7020');\n\n// Looking up IP address:\n$response = $ipGeoBaseClient-\u003elookupIp('93.184.216.119');\n\n// Getting country:\n$response-\u003egetCountry();\n// \"RU\"\n\n// Getting city:\n$response-\u003egetCity();\n// \"Москва\"\n\n// Getting region:\n$response-\u003egetRegion();\n// \"Москва\"\n\n// Getting district:\n$response-\u003egetDistrict();\n// \"Центральный федеральный округ\"\n\n// Accessing IP range:\n$ipRange = $response-\u003egetIpRange();\n\n$ipRange-\u003egetStartIp();\n// \"213.180.200.192\"\n\n$ipRange-\u003egetEndIp();\n// \"213.180.208.255\"\n\n// Returning IP range as a string:\n(string) $ipRange;\n// \"213.180.200.192 - 213.180.208.255\"\n\n// Accessing coordinates:\n$coordinates = $response-\u003egetCoordinates()\n\n$coordinates-\u003egetLatitude();\n// float(55.755787)\n\n$coordinates-\u003egetLongitude();\n// float(37.617634)\n\n// Returning coordinates as a string:\n(string) $coordinates;\n// string(20) \"55.755787, 37.617634\"\n\n```\n\n## Feedback\n\nIf you have found a bug or have another issue with the library - please [create an issue][new-issue]\nin this GitHub repository.\n\nIf you have a question - file it with [StackOverflow][so-ask] and send me a\nlink to [s.fomin@betsol.ru][email]. I will be glad to help.\n\nHave any ideas or propositions? Feel free to contact me by [E-Mail][email].\n\nCheers!\n\n# Sponsor\n\nThis library is sponsored by [Winners Academy][winners-academy].\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 Slava Fomin II\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n[models]:          Model/\n[exceptions]:      Exception/\n[ipgeobase]:       http://ipgeobase.ru/\n[so-ask]:          http://stackoverflow.com/questions/ask\n[email]:           mailto:s.fomin@betsol.ru\n[new-issue]:       //github.com/betsol/ipgeobase-client/issues/new\n[guzzle]:          http://guzzle.readthedocs.org/en/latest/\n[composer]:        https://getcomposer.org/\n[psr-standards]:   http://www.php-fig.org/\n[winners-academy]: http://winnersacademy.ru/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetsol%2Fipgeobase-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbetsol%2Fipgeobase-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetsol%2Fipgeobase-client/lists"}