Skip to content

Senfenico PHP and Python SDKs

SDKs exist for PHP and Python. They wrap the REST API without changing how it behaves: same error codes, same limits.

For a new integration, we recommend calling the REST API directly over HTTP. The SDKs are published separately from the API, so these docs cannot guarantee that their methods match the latest API version. The guides show the full HTTP integration with PHP, Laravel, Django and Node.js.

The senfenico/senfenico-php package is published on Packagist. Install it with Composer:

Fenêtre de terminal
composer require senfenico/senfenico-php
<?php
require_once 'vendor/autoload.php';

The available methods and the required PHP version are described in the package README.

Install the senfenico package with pip:

Fenêtre de terminal
pip install senfenico

The available methods are described in the package README.

According to the package documentation, the \Senfenico\Webhook::constructEvent() (PHP) and senfenico.Webhook.construct_event() (Python) helpers only verify the legacy X-Webhook-Hash signature. It is still sent with every webhook, but it has no timestamp and therefore does not protect against replay.