PHP code example of soluwire / laravel-currencyapi

1. Go to this page and download the library: Download soluwire/laravel-currencyapi 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/ */

    

soluwire / laravel-currencyapi example snippets


composer 

soluwire\currencyapi\CurrencyApiProvider::class,

\soluwire\currencyapi\Driver::CallApi("8.8.8.8") //Replace 8.8.8.8 with an ip of your choice, it'll return relevent information.
 

{
 latitude: 39.0438
 longitude: -77.4874
 city: "Ashburn"
 region: "VA"
 currency": "$"
}