PHPackages                             ccvshop/econnect-psb-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. [API Development](/categories/api)
4. /
5. ccvshop/econnect-psb-php

ActiveLibrary[API Development](/categories/api)

ccvshop/econnect-psb-php
========================

CCV Shop implementation for the PSB of econnect.

v0.1.4(3mo ago)0370↑809.1%MITPHPPHP &gt;=7.2

Since Mar 24Pushed 3mo agoCompare

[ Source](https://github.com/ccvshop/E-Connect-PSB)[ Packagist](https://packagist.org/packages/ccvshop/econnect-psb-php)[ RSS](/packages/ccvshop-econnect-psb-php/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (5)Dependencies (8)Versions (6)Used By (0)

PHP Client
==========

[](#php-client)

A reference implementation meant as an example how to use the PSB api using PHP.

Requirements
------------

[](#requirements)

- PHP 7.2 or greater

Install
-------

[](#install)

- Install library using [`composer`](https://getcomposer.org/).

```
composer require ccvshop/econnect-psb-php
```

Then include composer autoloader.

```
require __DIR__ . '/vendor/autoload.php';
```

Configure
---------

[](#configure)

```
$config = \EConnect\Psb\Configuration::getDefaultConfiguration();

$config
    ->setUsername("{username}")
    ->setPassword("{password}");
    ->setClientId("{clientId}")
    ->setClientSecret("{clientSecret}")
    ->setHost("https://psb.econnect.eu")
    ->setApiKey('Subscription-Key', '{subscription key}');
```

Login
-----

[](#login)

Login using the default configuration.

```
$config = \EConnect\Psb\Configuration::getDefaultConfiguration();

$authN = new \EConnect\Psb\Authentication($config);
$authN->login();
```

Use api
-------

[](#use-api)

Use the api using the default configuration after a successful login. In this example we are calling the send sales invoice api. The user must have send permission on the provide sender [`partyId`](https://psb.econnect.eu/misc/partyIds.html). Also make sure the UBL is valid, otherwise it will be block for sending. The receiver [`partyId`](https://psb.econnect.eu/misc/partyIds.html) is optional, the PSB will use the best possible route we no receiver partyId is provided.

```
$config = \EConnect\Psb\Configuration::getDefaultConfiguration();

$salesInvoiceApi = new EConnect\Psb\Api\SalesInvoiceApi(
    new GuzzleHttp\Client();
    $config
);

$yourPartyId = "senderPartyId";
$filePath = "./Ubl.xml";
$receiverPartyId = null;

$salesInvoiceApi->sendSalesInvoice($yourPartyId, $filePath, $receiverPartyId);
```

Example client
--------------

[](#example-client)

There is a [`simple example php client`](./ExampleSendInvoice.php) that you can run on a php webserver. With the example you can [`send an invoice via Peppol`](https://psb.econnect.eu/introduction/sendInvoice.html). Also there is a [`webhook receiver example`](./ExampleWebhookReceiver.php) that you need to have in order to [`receive invoices from Peppol`](https://psb.econnect.eu/introduction/receiveInvoice.html).

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance82

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

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

Total

5

Last Release

91d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30952cf40cb14e375acb8baba3bcabc6d01d413460b5300af7cce14c161cd82b?d=identicon)[adriaanmeijer](/maintainers/adriaanmeijer)

---

Tags

peppoleconnectpsb

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ccvshop-econnect-psb-php/health.svg)

```
[![Health](https://phpackages.com/badges/ccvshop-econnect-psb-php/health.svg)](https://phpackages.com/packages/ccvshop-econnect-psb-php)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k34](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1942.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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