{"id":22447109,"url":"https://github.com/showx/ipshow","last_synced_at":"2026-01-27T20:31:24.558Z","repository":{"id":264980679,"uuid":"849201894","full_name":"showx/ipshow","owner":"showx","description":"ip解析器","archived":false,"fork":false,"pushed_at":"2024-11-28T01:45:46.000Z","size":46936,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-06T23:00:03.270Z","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/showx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-29T06:54:50.000Z","updated_at":"2024-11-27T09:04:01.000Z","dependencies_parsed_at":"2024-11-27T03:37:22.440Z","dependency_job_id":null,"html_url":"https://github.com/showx/ipshow","commit_stats":null,"previous_names":["showx/ipshow"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showx%2Fipshow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showx%2Fipshow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showx%2Fipshow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showx%2Fipshow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/showx","download_url":"https://codeload.github.com/showx/ipshow/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236684480,"owners_count":19188642,"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","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-12-06T04:14:25.569Z","updated_at":"2025-10-16T05:31:47.911Z","avatar_url":"https://github.com/showx.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ipshowIP地址查询库\n\n一个高性能的IP地址地理位置查询库，支持快速查询IP对应的国家、省份和城市信息。\n\n## 特性\n\n- 高性能：使用二进制文件存储，支持快速检索\n- 低内存：采用稀疏索引，只在内存中保留必要的索引数据\n- 并发安全：支持多进程/多线程并发查询\n- 中文支持：直接返回中文地理位置信息\n- 调试功能：可选的调试输出功能\n\n## 安装\n\n通过 Composer 安装：\n\n```bash\ncomposer require ipshow/ipshow\n```\n\n## 使用方法\n\n```php\nuse IpShow\\IpShow;\n\n$ip = '1.1.1.1';\n$ipFinder = new IpShow();\n$location = $ipFinder-\u003efind($ip);\n\nif ($location) {\n    echo \"国家: \" . $location['country'] . \"\\n\";\n    echo \"省份: \" . $location['province'] . \"\\n\";\n    echo \"城市: \" . $location['city'] . \"\\n\";\n} else {\n    echo \"未找到此IP的位置信息\\n\";\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshowx%2Fipshow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshowx%2Fipshow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshowx%2Fipshow/lists"}