Welcome to our PHP Client Library for interacting with our API!
This library streamlines the process of integrating and utilising our services within your PHP applications. Whether you're working on a web app, a data analysis project, or any other software that requires interaction with our API, this guide will help you get started quickly and efficiently.
View source and usage instructions >
//Installed via Composer
require_once __DIR__ . '/vendor/autoload.php';
//Installed manually
//Using composer installed location for example, simply reference the /src/Client.php where extracted/installed instead.
//require_once __DIR__ . '/vendor/bigdatacloudapi/php-api-client/src/Client.php';
$apiKey = "XXX"; // Your api key found at: https://www.bigdatacloud.com/account
$client = new \BigDataCloud\Api\Client($apiKey);
/*
Can specify the api endpoint using either camelised magic methods, or by calling the communicate command directly.
Example magic method: "GET" from "ip-geolocation-full" endpoint becomes: getIpGeolocationFull();
*/
$result=$client->getIpGeolocationFull(['ip'=>'8.8.8.8']);
var_dump($result);
If you have any further queries, feel free to contact our email support on our contact us page .
Topics