PHPackages                             shell/ev-recharge-sdk - 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. [CLI &amp; Console](/categories/cli)
4. /
5. shell/ev-recharge-sdk

ActiveLibrary[CLI &amp; Console](/categories/cli)

shell/ev-recharge-sdk
=====================

This API Product provides the option to manage charging at all public Shell Recharge locations. The end points provides control to start, stop and get status of the charging session.

2.2.0(2w ago)07MITPHPPHP ^7.2 || ^8.0

Since May 28Pushed 2w agoCompare

[ Source](https://github.com/sdks-io/ev-recharge-php-sdk)[ Packagist](https://packagist.org/packages/shell/ev-recharge-sdk)[ Docs](https://www.shell.com/)[ RSS](/packages/shell-ev-recharge-sdk/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (12)Versions (9)Used By (0)

Getting Started with Shell EV
=============================

[](#getting-started-with-shell-ev)

Introduction
------------

[](#introduction)

This API Product provides the list of all Shell Recharge locations. The list includes all Shell Recharge network and all locations available through our roaming partners.

Supported Functions

- Get the list of all the locations and its details.
- Get the details of a particular location.
- Get the list of locations nearby using the latitude and longitude.
- Get the list of locations for a given set of bounds with different zoom levels.

The Charging endpoints provides control to start, stop and get status of the charging session.

Supported Functions

- Start a charging session\\n
- Stop a charging session \\n
- Retrieve the status of a charging session \\n
- Retrieve the list of all active sessions for a card

Go to the Shell Developer Portal:

Install the Package
-------------------

[](#install-the-package)

Run the following command to install the package and automatically add the dependency to your composer.json file:

```
composer require "shell/ev-recharge-sdk:2.1.0"
```

Or add it to the composer.json file manually as given below:

```
"require": {
    "shell/ev-recharge-sdk": "2.1.0"
}
```

You can also view the package at:

Test the SDK
------------

[](#test-the-sdk)

Unit tests in this SDK can be run using PHPUnit.

1. First install the dependencies using composer including the `require-dev` dependencies.
2. Run `vendor\bin\phpunit --verbose` from commandline to execute tests. If you have installed PHPUnit globally, run tests using `phpunit --verbose` instead.

You can change the PHPUnit test configuration in the `phpunit.xml` file.

Initialize the API Client
-------------------------

[](#initialize-the-api-client)

***Note:*** Documentation for the client can be found [here.](https://www.github.com/sdks-io/ev-recharge-php-sdk/tree/2.1.0/doc/client.md)

The following parameters are configurable for the API Client:

ParameterTypeDescriptionenvironment[`Environment`](https://www.github.com/sdks-io/ev-recharge-php-sdk/tree/2.1.0/README.md#environments)The API environment.
 **Default: `Environment.PRODUCTION`**timeout`int`Timeout for API calls in seconds.
*Default*: `0`enableRetries`bool`Whether to enable retries and backoff feature.
*Default*: `false`numberOfRetries`int`The number of retries to make.
*Default*: `0`retryInterval`float`The retry time interval between the endpoint calls.
*Default*: `1`backOffFactor`float`Exponential backoff factor to increase interval between retries.
*Default*: `2`maximumRetryWaitTime`int`The maximum wait time in seconds for overall retrying requests.
*Default*: `0`retryOnTimeout`bool`Whether to retry on request timeout.
*Default*: `true`httpStatusCodesToRetry`array`Http status codes to retry against.
*Default*: `408, 413, 429, 500, 502, 503, 504, 521, 522, 524`httpMethodsToRetry`array`Http methods to retry against.
*Default*: `'GET', 'PUT'`proxyConfiguration[`ProxyConfigurationBuilder`](https://www.github.com/sdks-io/ev-recharge-php-sdk/tree/2.1.0/doc/proxy-configuration-builder.md)Represents the proxy configurations for API callsclientCredentialsAuth[`ClientCredentialsAuth`](https://www.github.com/sdks-io/ev-recharge-php-sdk/tree/2.1.0/doc/auth/oauth-2-client-credentials-grant.md)The Credentials Setter for OAuth 2 Client Credentials GrantThe API client can be initialized as follows:

```
use ShellEVLib\Environment;
use ShellEVLib\Authentication\ClientCredentialsAuthCredentialsBuilder;
use ShellEVLib\ShellEVClientBuilder;

$client = ShellEVClientBuilder::init()
    ->clientCredentialsAuthCredentials(
        ClientCredentialsAuthCredentialsBuilder::init(
            'OAuthClientId',
            'OAuthClientSecret'
        )
    )
    ->environment(Environment::PRODUCTION)
    ->build();
```

Environments
------------

[](#environments)

The SDK can be configured to use a different environment for making API calls. Available environments are:

### Fields

[](#fields)

NameDescriptionPRODUCTION**Default** Production ServerENVIRONMENT2Test ServerAuthorization
-------------

[](#authorization)

This API uses the following authentication schemes.

- [`BearerAuth (OAuth 2 Client Credentials Grant)`](https://www.github.com/sdks-io/ev-recharge-php-sdk/tree/2.1.0/doc/auth/oauth-2-client-credentials-grant.md)

List of APIs
------------

[](#list-of-apis)

- [Locations](https://www.github.com/sdks-io/ev-recharge-php-sdk/tree/2.1.0/doc/controllers/locations.md)
- [Charging](https://www.github.com/sdks-io/ev-recharge-php-sdk/tree/2.1.0/doc/controllers/charging.md)

SDK Infrastructure
------------------

[](#sdk-infrastructure)

### Configuration

[](#configuration)

- [ProxyConfigurationBuilder](https://www.github.com/sdks-io/ev-recharge-php-sdk/tree/2.1.0/doc/proxy-configuration-builder.md)

### HTTP

[](#http)

- [HttpRequest](https://www.github.com/sdks-io/ev-recharge-php-sdk/tree/2.1.0/doc/http-request.md)
- [HttpResponse](https://www.github.com/sdks-io/ev-recharge-php-sdk/tree/2.1.0/doc/http-response.md)

### Utilities

[](#utilities)

- [ApiException](https://www.github.com/sdks-io/ev-recharge-php-sdk/tree/2.1.0/doc/api-exception.md)

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance96

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

Every ~107 days

Recently: every ~139 days

Total

8

Last Release

16d ago

Major Versions

1.4.0 → 2.0.02026-06-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef06f97b4ff5db714f2a124525216538f97338487cd4e2bca22baa32c0bf90cd?d=identicon)[developer-sdksio](/maintainers/developer-sdksio)

---

Top Contributors

[![developer-sdksio](https://avatars.githubusercontent.com/u/135820708?v=4)](https://github.com/developer-sdksio "developer-sdksio (7 commits)")

---

Tags

sdkshellapimaticapislocationsrechargeevCharging

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/shell-ev-recharge-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/shell-ev-recharge-sdk/health.svg)](https://phpackages.com/packages/shell-ev-recharge-sdk)
```

###  Alternatives

[square/square

Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.

773.9M29](/packages/square-square)[paypal/paypal-server-sdk

PayPal's SDK for interacting with the REST APIs

62833.4k13](/packages/paypal-paypal-server-sdk)[bravo3/ssh

Interactive SSH2 suite for PHP 5.4

191.0k1](/packages/bravo3-ssh)

PHPackages © 2026

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