{"id":51704469,"url":"https://github.com/bigdatacloudapi/bigdatacloud-php","last_synced_at":"2026-07-16T14:05:47.515Z","repository":{"id":368507679,"uuid":"1207426705","full_name":"bigdatacloudapi/bigdatacloud-php","owner":"bigdatacloudapi","description":"Official PHP SDK for BigDataCloud APIs — IP Geolocation, Reverse Geocoding, Phone \u0026 Email Verification, Network Engineering","archived":false,"fork":false,"pushed_at":"2026-04-11T00:03:32.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-30T23:20:48.455Z","etag":null,"topics":["api-client","bigdatacloud","composer","geolocation","ip-geolocation","laravel","packagist","php","reverse-geocoding","sdk"],"latest_commit_sha":null,"homepage":null,"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/bigdatacloudapi.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-10T23:44:40.000Z","updated_at":"2026-04-11T22:36:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bigdatacloudapi/bigdatacloud-php","commit_stats":null,"previous_names":["bigdatacloudapi/bigdatacloud-php"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bigdatacloudapi/bigdatacloud-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigdatacloudapi%2Fbigdatacloud-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigdatacloudapi%2Fbigdatacloud-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigdatacloudapi%2Fbigdatacloud-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigdatacloudapi%2Fbigdatacloud-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigdatacloudapi","download_url":"https://codeload.github.com/bigdatacloudapi/bigdatacloud-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigdatacloudapi%2Fbigdatacloud-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35546294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-16T02:00:06.687Z","response_time":83,"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":["api-client","bigdatacloud","composer","geolocation","ip-geolocation","laravel","packagist","php","reverse-geocoding","sdk"],"created_at":"2026-07-16T14:05:46.641Z","updated_at":"2026-07-16T14:05:47.509Z","avatar_url":"https://github.com/bigdatacloudapi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BigDataCloud PHP SDK\n\n[![Packagist](https://img.shields.io/packagist/v/bigdatacloudapi/bigdatacloud)](https://packagist.org/packages/bigdatacloudapi/bigdatacloud)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n[![PHP](https://img.shields.io/badge/PHP-8.1%2B-blue)](https://www.php.net)\n\nOfficial PHP SDK for [BigDataCloud](https://www.bigdatacloud.com) APIs. Strongly-typed client for IP Geolocation, Reverse Geocoding, Phone \u0026 Email Verification, and Network Engineering.\n\nZero external dependencies — requires only `ext-curl` and `ext-json`.\n\n## Installation\n\n```bash\ncomposer require bigdatacloudapi/bigdatacloud\n```\n\n## API Key\n\nGet a free API key at [bigdatacloud.com/login](https://www.bigdatacloud.com/login). No credit card required.\n\n```bash\nexport BIGDATACLOUD_API_KEY=your-key-here\n```\n\n## Quick Start\n\n```php\nuse BigDataCloud\\BigDataCloudClient;\n\n// Reads BIGDATACLOUD_API_KEY from environment\n$client = BigDataCloudClient::fromEnvironment();\n\n// Or pass the key directly\n// $client = new BigDataCloudClient('your-key-here');\n\n// IP Geolocation\n$geo = $client-\u003eipGeolocation-\u003eget('1.1.1.1');\necho \"{$geo-\u003elocation-\u003ecity}, {$geo-\u003ecountry-\u003ename}\\n\";\n\n// Reverse Geocoding\n$place = $client-\u003ereverseGeocoding-\u003ereverseGeocode(-33.87, 151.21);\necho \"{$place-\u003ecity}, {$place-\u003ecountryName}\\n\";\n\n// Phone Validation — countryCode is required\n$phone = $client-\u003everification-\u003evalidatePhone('+61412345678', 'AU');\necho \"Valid: \" . ($phone-\u003eisValid ? 'yes' : 'no') . \", Type: {$phone-\u003elineType}\\n\";\n\n// Email Verification\n$email = $client-\u003everification-\u003everifyEmail('user@example.com');\necho \"Valid: \" . ($email-\u003eisValid ? 'yes' : 'no') . \", Disposable: \" . ($email-\u003eisDisposable ? 'yes' : 'no') . \"\\n\";\n```\n\n## Confidence Area\n\nThe `confidenceArea` field may encode multiple polygons. Use the helper:\n\n```php\nuse BigDataCloud\\ConfidenceAreaHelper;\n\n$geo = $client-\u003eipGeolocation-\u003egetWithConfidenceArea('1.1.1.1');\n$polygons = ConfidenceAreaHelper::splitIntoPolygons($geo-\u003econfidenceArea);\nforeach ($polygons as $i =\u003e $ring) {\n    echo \"Ring \" . ($i + 1) . \": \" . count($ring) . \" points\\n\";\n}\n```\n\n## Available APIs\n\n| Client | Methods |\n|--------|---------|\n| `$client-\u003eipGeolocation` | `get`, `getWithConfidenceArea`, `getFull`, `getCountryByIp`, `getCountryInfo`, `getAllCountries`, `getHazardReport`, `getUserRisk`, `getAsnInfo`, `getNetworkByIp`, `getTimezoneByIanaId`, `getTimezoneByIp`, `parseUserAgent` |\n| `$client-\u003ereverseGeocoding` | `reverseGeocode`, `reverseGeocodeWithTimezone`, `getTimezoneByLocation` |\n| `$client-\u003everification` | `validatePhone`, `validatePhoneByIp`, `verifyEmail` |\n| `$client-\u003enetworkEngineering` | `getAsnInfoFull`, `getReceivingFrom`, `getTransitTo`, `getBgpPrefixes`, `getNetworksByCidr`, `getAsnRankList`, `getTorExitNodes` |\n\n## Phone Validation\n\nBoth methods require explicit country context — never uses server IP silently:\n\n```php\n// You know the country\n$phone = $client-\u003everification-\u003evalidatePhone('+61412345678', 'AU');\n\n// You know the end user's IP (pass their IP, not your server's)\n$phone = $client-\u003everification-\u003evalidatePhoneByIp('0412345678', $userIp);\n```\n\n## Error Handling\n\n```php\nuse BigDataCloud\\BigDataCloudException;\n\ntry {\n    $geo = $client-\u003eipGeolocation-\u003eget('1.1.1.1');\n} catch (BigDataCloudException $e) {\n    echo \"API error {$e-\u003estatusCode}: {$e-\u003egetMessage()}\\n\";\n}\n```\n\n## Samples\n\n```bash\nexport BIGDATACLOUD_API_KEY=your-key-here\nphp samples/ip_geolocation.php\nphp samples/reverse_geocoding.php\nphp samples/verification.php\nphp samples/network_engineering.php\n```\n\n## Requirements\n\n- PHP 8.1+\n- ext-curl\n- ext-json\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigdatacloudapi%2Fbigdatacloud-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigdatacloudapi%2Fbigdatacloud-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigdatacloudapi%2Fbigdatacloud-php/lists"}