1. Go to this page and download the library: Download skapelapp/ipstack-laravel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use Skapelapp\IPStackLaravel\IPStack;
// Create an instance of the IPStack class and provide your API key
$apiKey = config('ipstack.api_key');
$ipstack = new IPStack($apiKey);
// Use the getInfo method to retrieve information
$ipInfo = $ipstack->getInfo();
// Make use of the returned information
// dd($ipInfo);