2017 © Pedro Peláez
 

library evstation-php

PHP API wrapper for locating electric vehicle charging stations on NREL

image

johnathanmiller/evstation-php

PHP API wrapper for locating electric vehicle charging stations on NREL

  • Monday, May 22, 2017
  • by johnathanmiller
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

EVStation PHP

Build Status, (*1)

PHP API wrapper for locating electric vehicle charging stations on NREL. National Renewable Energy Laboratory (NREL) API v1: https://developer.nrel.gov Get your API Key at https://developer.nrel.gov/signup/, (*2)

Rate Limiting

https://developer.nrel.gov/docs/rate-limits/, (*3)

Installation

Download evstation-php from GitHub or install using Composer, (*4)

composer require johnathanmiller/evstation-php

Import into namespace environment, (*5)

use JohnathanMiller\EVStation\EVStation;

or include into your project using the require function, (*6)

require 'EVStation.php';

Instantiate EVStation You'll need to pass in two arguments into EVStation. The first parameter is expecting an API key to make successful requests and the second parameter is used to format the request, json or xml., (*7)

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

Examples

Get All Stations

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

Get Station by ID

$evStation->get(123);

Nearest Stations

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

Stations Nearby Route

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

Last Updated Date

$evStation->lastUpdated();

The Versions

22/05 2017

dev-master

9999999-dev

PHP API wrapper for locating electric vehicle charging stations on NREL

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

22/05 2017

v1.0.0

1.0.0.0

PHP API wrapper for locating electric vehicle charging stations on NREL

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires