PHPackages                             codivores/laravel-ocpi-emsp - 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. [API Development](/categories/api)
4. /
5. codivores/laravel-ocpi-emsp

ActiveLibrary[API Development](/categories/api)

codivores/laravel-ocpi-emsp
===========================

A Laravel package for OCPI (Open Charge Point Interface) protocol as eMSP (e-Mobility Service Provider).

v0.1.1(1y ago)1983proprietaryPHPPHP ^8.2

Since Oct 28Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/Codivores/Laravel-OCPI-eMSP)[ Packagist](https://packagist.org/packages/codivores/laravel-ocpi-emsp)[ Docs](https://github.com/Codivores/Laravel-OCPI-eMSP)[ RSS](/packages/codivores-laravel-ocpi-emsp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

Laravel OCPI eMSP
=================

[](#laravel-ocpi-emsp)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6d1d86a31f7030516de035d0ba120cc0e0a1496b98ee73a0465794f0323a3f17/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6469766f7265732f6c61726176656c2d6f6370692d656d73702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codivores/laravel-ocpi-emsp)[![Total Downloads](https://camo.githubusercontent.com/13c0644f9e629f588f215bbd33b363192ec3135cf1b0b4d4279c1e019927dcc7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6469766f7265732f6c61726176656c2d6f6370692d656d73702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codivores/laravel-ocpi-emsp)

Laravel package for OCPI ([Open Charge Point Interface](https://github.com/ocpi/ocpi)) protocol as eMSP (e-Mobility Service Provider).

### Key Features:

[](#key-features)

- **OCPI version:** 2.1.1
- **OCPI Modules:**
    - CDRs
    - Commands
    - Credentials &amp; Registration
    - Locations
    - Sessions
    - Versions

### Version support

[](#version-support)

- **PHP:** `8.2`, `8.3`
- **Laravel:** `11.0`

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

[](#installation)

You can install the package via composer:

```
composer require codivores/laravel-ocpi-emsp
```

If you want to customize the eMSP configuration (party information, versions and available modules), you can publish the dedicated config file:

```
php artisan vendor:publish --tag="ocpi-emsp-config"
```

This is the content of the published config file:

```
return [

    /*
    |--------------------------------------------------------------------------
    | Party
    |--------------------------------------------------------------------------
    */

    'party' => [
        'party_id' => env('OCPI_EMSP_PARTY_ID'),
        'country_code' => env('OCPI_EMSP_COUNTRY_CODE'),
        'business_details' => [
            'name' => env('OCPI_EMSP_NAME', env('APP_NAME')),
            'website' => env('OCPI_EMSP_WEBSITE', env('APP_URL')),
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Versions
    |--------------------------------------------------------------------------
    */

    'versions' => [
        '2.1.1' => [
            'modules' => [
                'cdrs',
                'commands',
                'credentials',
                'locations',
                'sessions',
            ],
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Modules
    |--------------------------------------------------------------------------
    */

    'module' => [
        'cdrs' => [
            'id_separator' => env('OCPI_EMSP_MODULE_CDRS_ID_SEPARATOR', '___'),
        ],
    ],

];
```

If you want to customize the package configuration, you can publish the config file:

```
php artisan vendor:publish --tag="ocpi-config"
```

This is the content of the published config file:

```
return [

    /*
    |--------------------------------------------------------------------------
    | Server
    |--------------------------------------------------------------------------
    */

    'server' => [
        'enabled' => env('OCPI_SERVER_ENABLED', true),
        'routing' => [
            'uri_prefix' => env('OCPI_SERVER_ROUTING_URI_PREFIX', 'ocpi/emsp'),
            'name_prefix' => env('OCPI_SERVER_ROUTING_NAME_PREFIX', 'ocpi.emsp.'),
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Client
    |--------------------------------------------------------------------------
    */

    'client' => [
        'server' => [
            'url' => env('OCPI_CLIENT_SERVER_URL', env('APP_URL')).'/'.env('OCPI_SERVER_ROUTING_URI_PREFIX', 'ocpi/emsp'),
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Database
    |--------------------------------------------------------------------------
    */

    'database' => [
        'connection' => env('OCPI_DATABASE_CONNECTION', env('DB_CONNECTION', 'sqlite')),
        'table' => [
            'prefix' => env('OCPI_DATABASE_TABLE_PREFIX', 'ocpi_'),
        ],
    ],

];
```

Getting started
---------------

[](#getting-started)

#### Define the eMSP information environment variables:

[](#define-the-emsp-information-environment-variables)

```
OCPI_EMSP_PARTY_ID=MYC
OCPI_EMSP_COUNTRY_CODE=FR
OCPI_EMSP_NAME=My Company
OCPI_EMSP_WEBSITE=https://www.my-company.org
```

#### Initialize a new "Sender" Party to start credentials exchange:

[](#initialize-a-new-sender-party-to-start-credentials-exchange)

```
php artisan ocpi:credentials:initialize
```

#### Run credentials exchange with a new "Sender" Party:

[](#run-credentials-exchange-with-a-new-sender-party)

```
php artisan ocpi:credentials:register {party_code}
```

Other commands
--------------

[](#other-commands)

#### Update credentials and versions with a Party:

[](#update-credentials-and-versions-with-a-party)

```
php artisan ocpi:credentials:update {party_code} {--without_new_client_token}
```

#### Synchronize locations of all or a specific Party:

[](#synchronize-locations-of-all-or-a-specific-party)

```
php artisan ocpi:locations:synchronize {--P|party=}
```

License
-------

[](#license)

The DBAD License (DBAD). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance47

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

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 ~6 days

Total

2

Last Release

555d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d3ca30a01c7e7f8d91f7a9dae3c87acf2511861648d9d92c78fb70dbbac53854?d=identicon)[Codivores](/maintainers/Codivores)

---

Top Contributors

[![agnonym](https://avatars.githubusercontent.com/u/36710878?v=4)](https://github.com/agnonym "agnonym (168 commits)")

---

Tags

laravellaravel-ocpi-emspOCPIOpen Charge Point InterfaceeMSPe-Mobility Service Provider

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/codivores-laravel-ocpi-emsp/health.svg)

```
[![Health](https://phpackages.com/badges/codivores-laravel-ocpi-emsp/health.svg)](https://phpackages.com/packages/codivores-laravel-ocpi-emsp)
```

###  Alternatives

[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)[codebar-ag/laravel-zammad

Zammad integration with Laravel

106.1k](/packages/codebar-ag-laravel-zammad)[njoguamos/laravel-plausible

A laravel package for interacting with plausible analytics api.

208.8k](/packages/njoguamos-laravel-plausible)

PHPackages © 2026

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