PHP code example of spikkl / spikkl-php-laravel-client

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

    

spikkl / spikkl-php-laravel-client example snippets


$app->withFacades(true, [ 'Spikkl\Laravel\Facades\Spikkl' => 'Spikkl' ]);

$app->register(Spikkl\Laravel\ServiceProvider::class);

SPIKKL_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

$results = Spikkl::api()->lookup('nld', '2611HB', '175', null);

$results = Spikkl::api()->reverse('nld', 4.354901, 52.012133);

// Using facade accessor
$results = Spikkl::api()->lookup('nld', '2611HB', '175', null);

// Using global helper function
$results = spikkl()->lookup('nld', '2611HB', '175', null);
bash
   $ composer