{"id":14966727,"url":"https://github.com/ip2location/ip2proxy-yii","last_synced_at":"2026-01-29T08:41:39.146Z","repository":{"id":56993065,"uuid":"297555695","full_name":"ip2location/ip2proxy-yii","owner":"ip2location","description":"IP2Proxy extension for Yii. It can be used to find the IP addresses which are used as VPN anonymizer, open proxies, web proxies and TOR exits nodes, search engine robots, data center ranges and residential proxies.","archived":false,"fork":false,"pushed_at":"2024-02-19T01:10:12.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-10T19:11:36.575Z","etag":null,"topics":["ip2proxy","proxy","proxy-information","web-service","yii2","yii2-extension"],"latest_commit_sha":null,"homepage":"https://www.ip2location.com","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/ip2location.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.TXT","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}},"created_at":"2020-09-22T06:25:32.000Z","updated_at":"2023-12-05T06:10:17.000Z","dependencies_parsed_at":"2024-01-03T03:02:10.666Z","dependency_job_id":"683d75a8-6765-4ba4-aaba-6dd11e60ade9","html_url":"https://github.com/ip2location/ip2proxy-yii","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"55aa48bbbbddcffb7b9f09c23378506ddbd97e85"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ip2location/ip2proxy-yii","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fip2proxy-yii","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fip2proxy-yii/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fip2proxy-yii/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fip2proxy-yii/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ip2location","download_url":"https://codeload.github.com/ip2location/ip2proxy-yii/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ip2location%2Fip2proxy-yii/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259546413,"owners_count":22874560,"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":["ip2proxy","proxy","proxy-information","web-service","yii2","yii2-extension"],"created_at":"2024-09-24T13:36:51.636Z","updated_at":"2026-01-29T08:41:34.111Z","avatar_url":"https://github.com/ip2location.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IP2Proxy Yii extension\nIP2Proxy Yii extension enables the user to query an IP address if it was being used as open proxy, web proxy, VPN anonymizer and TOR exit nodes, search engine robots, data center ranges, residential proxies, consumer privacy networks, and enterprise private networks. It lookup the proxy IP address from IP2Proxy BIN Data file or web service. Developers can use the API to query all IP2Proxy BIN databases or web service for applications written using Yii.\n\n\n## INSTALLATION\nFor Yii2\n\n1. Run the command: `php composer.phar require ip2location/ip2proxy-yii` to download the plugin into the Yii2 framework.\n2. Download latest IP2Proxy BIN database\n    - IP2Proxy free LITE database at https://lite.ip2location.com\n    - IP2Proxy commercial database at https://www.ip2location.com/proxy-database\n3. Unzip and copy the BIN file into the Yii2 framework.\n\n**Note:** The BIN database refers to the binary file ended with .BIN extension, but not the CSV format.\nPlease select the right package for download.\n\n\n## USAGE\n```\nuse IP2ProxyYii\\IP2Proxy_Yii;\n\n// (required) Define IP2Proxy database path.\ndefine('IP2PROXY_DATABASE', '/path/to/ip2proxy/database');\n\n// (required) Define IP2Location.io API key.\ndefine('IP2LOCATION_IO_API_KEY', 'your_api_key');\n\n// (optional) Define Translation information. Refer to https://www.ip2location.io/ip2location-documentation for available languages.\ndefine('IP2LOCATION_IO_LANGUAGE', 'en');\n\n$IP2Proxy = new IP2Proxy_Yii();\n\n$record = $IP2Proxy-\u003eget('1.0.241.135');\necho 'Result from BIN Database:\u003cbr\u003e';\necho '\u003cp\u003e\u003cstrong\u003eIP Address: \u003c/strong\u003e' . $record['ipAddress'] . '\u003c/p\u003e';\necho '\u003cp\u003e\u003cstrong\u003eIP Number: \u003c/strong\u003e' . $record['ipNumber'] . '\u003c/p\u003e';\necho '\u003cp\u003e\u003cstrong\u003eIP Version: \u003c/strong\u003e' . $record['ipVersion'] . '\u003c/p\u003e';\necho '\u003cp\u003e\u003cstrong\u003eCountry Code: \u003c/strong\u003e' . $record['countryCode'] . '\u003c/p\u003e';\necho '\u003cp\u003e\u003cstrong\u003eCountry: \u003c/strong\u003e' . $record['countryName'] . '\u003c/p\u003e';\necho '\u003cp\u003e\u003cstrong\u003eState: \u003c/strong\u003e' . $record['regionName'] . '\u003c/p\u003e';\necho '\u003cp\u003e\u003cstrong\u003eCity: \u003c/strong\u003e' . $record['cityName'] . '\u003c/p\u003e';\necho '\u003cp\u003e\u003cstrong\u003eProxy Type: \u003c/strong\u003e' . $record['proxyType'] . '\u003c/p\u003e';\necho '\u003cp\u003e\u003cstrong\u003eIs Proxy: \u003c/strong\u003e' . $record['isProxy'] . '\u003c/p\u003e';\necho '\u003cp\u003e\u003cstrong\u003eISP: \u003c/strong\u003e' . $record['isp'] . '\u003c/p\u003e';\necho '\u003cp\u003e\u003cstrong\u003eDomain: \u003c/strong\u003e' . $record['domain'] . '\u003c/p\u003e';\necho '\u003cp\u003e\u003cstrong\u003eUsage Type: \u003c/strong\u003e' . $record['usageType'] . '\u003c/p\u003e';\necho '\u003cp\u003e\u003cstrong\u003eASN: \u003c/strong\u003e' . $record['asn'] . '\u003c/p\u003e';\necho '\u003cp\u003e\u003cstrong\u003eAS: \u003c/strong\u003e' . $record['as'] . '\u003c/p\u003e';\necho '\u003cp\u003e\u003cstrong\u003eLast Seen: \u003c/strong\u003e' . $record['lastSeen'] . '\u003c/p\u003e';\necho '\u003cp\u003e\u003cstrong\u003eThreat: \u003c/strong\u003e' . $record['threat'] . '\u003c/p\u003e';\necho '\u003cp\u003e\u003cstrong\u003eProvider: \u003c/strong\u003e' . $record['provider'] . '\u003c/p\u003e';\n\n$record = $IP2Proxy-\u003egetWebService('1.0.241.135');\necho 'Result from Web service:\u003cbr\u003e';\necho '\u003cpre\u003e';\nprint_r ($record);\necho '\u003c/pre\u003e';\n```\n\n\n## DEPENDENCIES\nThis library requires IP2Proxy BIN or IP2Proxy API key data file to function. You may download the BIN data file at\n* IP2Proxy LITE BIN Data (Free): https://lite.ip2location.com\n* IP2Proxy Commercial BIN Data (Comprehensive): https://www.ip2location.com/proxy-database\n\nYou can also sign up for [IP2Location.io IP Geolocation API](https://www.ip2location.io/sign-up) to get one free API key.\n\n\n## SUPPORT\nEmail: support@ip2location.com\n\nWebsite: https://www.ip2location.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fip2location%2Fip2proxy-yii","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fip2location%2Fip2proxy-yii","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fip2location%2Fip2proxy-yii/lists"}