| 
<?phprequire 'vendor/autoload.php';
 
 use thealgoslingers\AutoPrice;
 
 // Usage example
 $api_key = 'your_api_key_here'; // api key from ip2location.io
 
 // the default base price is approximately
 // or same as 1 USD. So we assume price is
 // being converted from USD
 $base_price = 100.0;//base price to be converted from
 
 $dp = new AutoPrice($api_key, $base_price);
 $user_ip = '8.8.8.8';// ip of the user
 
 echo $dp->calculatePrice($user_ip);
 |