{"id":13669283,"url":"https://github.com/dimsav/laravel-ip-service","last_synced_at":"2025-10-10T21:11:06.498Z","repository":{"id":25170967,"uuid":"28594032","full_name":"dimsav/laravel-ip-service","owner":"dimsav","description":"A Laravel package to get the user's country using the ip. A wrapper for http://ip2nation.com","archived":false,"fork":false,"pushed_at":"2020-01-10T13:58:57.000Z","size":5,"stargazers_count":118,"open_issues_count":2,"forks_count":14,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-15T03:09:53.224Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/dimsav.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2014-12-29T14:01:37.000Z","updated_at":"2025-04-23T09:36:40.000Z","dependencies_parsed_at":"2022-07-24T04:30:28.652Z","dependency_job_id":null,"html_url":"https://github.com/dimsav/laravel-ip-service","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dimsav/laravel-ip-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimsav%2Flaravel-ip-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimsav%2Flaravel-ip-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimsav%2Flaravel-ip-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimsav%2Flaravel-ip-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimsav","download_url":"https://codeload.github.com/dimsav/laravel-ip-service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimsav%2Flaravel-ip-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005411,"owners_count":26083883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-08-02T08:01:08.513Z","updated_at":"2025-10-10T21:11:06.461Z","avatar_url":"https://github.com/dimsav.png","language":"PHP","funding_links":[],"categories":["PHP","Packages"],"sub_categories":["GIS/Mapping"],"readme":"Laravel IP Service\n====================\n\nTries to guess the country code of the client, using his IP.\n\n## Installation\n\n\n[Download](http://ip2nation.com/ip2nation/Download) and import the ip database from [ip2nation.com](http://ip2nation.com/)\n\n## Usage\n\n```php\n$service = App::make('Dimsav\\IpService\\IpService');\n\n\n// country code for the given ip address\n\necho $service-\u003egetCountryCodeFromIp('123.123.123.123');\n\n\n// country code for the client's ip address\n\necho $service-\u003egetCountryCodeFromClientIp(); \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimsav%2Flaravel-ip-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimsav%2Flaravel-ip-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimsav%2Flaravel-ip-service/lists"}