PHP code example of johnathanmiller / evstation-php

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

    

johnathanmiller / evstation-php example snippets


use JohnathanMiller\EVStation\EVStation;



$evStation = new EVStation('YOUR_API_KEY', 'json');

$evStation->getAll(['zip' => 98004], 10);

$evStation->get(123);

$evStation->nearest(['location' => 'Bellevue, WA'], 10, 0);

$evStation->nearbyRoute(['route' => 'LINESTRING(-74.0 40.7, -87.63 41.87, -104.98 39.76)']);

$evStation->lastUpdated();

composer