PHPackages                             johnathanmiller/evstation-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. johnathanmiller/evstation-php

ActiveLibrary

johnathanmiller/evstation-php
=============================

PHP API wrapper for locating electric vehicle charging stations on NREL

v1.0.0(8y ago)2141MITPHPPHP &gt;=5.4

Since May 22Pushed 8y ago1 watchersCompare

[ Source](https://github.com/johnathanmiller/EVStation-PHP)[ Packagist](https://packagist.org/packages/johnathanmiller/evstation-php)[ RSS](/packages/johnathanmiller-evstation-php/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

EVStation PHP
=============

[](#evstation-php)

[![Build Status](https://camo.githubusercontent.com/b211803a5b27d56f9d6a9c84618ac48659b0b685b00b47fd493516e518ebff8e/68747470733a2f2f7472617669732d63692e6f72672f6a6f686e617468616e6d696c6c65722f455653746174696f6e2d5048502e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/johnathanmiller/EVStation-PHP)

PHP API wrapper for locating electric vehicle charging stations on NREL. National Renewable Energy Laboratory (NREL) API v1: Get your API Key at

Rate Limiting
-------------

[](#rate-limiting)

Installation
------------

[](#installation)

Download evstation-php from GitHub or install using Composer

```
composer require johnathanmiller/evstation-php

```

Import into namespace environment

```
use JohnathanMiller\EVStation\EVStation;
```

or include into your project using the require function

```
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`.

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

Examples
--------

[](#examples)

### Get All Stations

[](#get-all-stations)

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

### Get Station by ID

[](#get-station-by-id)

```
$evStation->get(123);
```

### Nearest Stations

[](#nearest-stations)

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

### Stations Nearby Route

[](#stations-nearby-route)

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

### Last Updated Date

[](#last-updated-date)

```
$evStation->lastUpdated();
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3279d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4898027?v=4)[Johnathan Miller](/maintainers/johnathanmiller)[@johnathanmiller](https://github.com/johnathanmiller)

---

Top Contributors

[![johnathanmiller](https://avatars.githubusercontent.com/u/4898027?v=4)](https://github.com/johnathanmiller "johnathanmiller (14 commits)")

---

Tags

api-wrappernrelphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/johnathanmiller-evstation-php/health.svg)

```
[![Health](https://phpackages.com/badges/johnathanmiller-evstation-php/health.svg)](https://phpackages.com/packages/johnathanmiller-evstation-php)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
