PHPackages                             torfs-ict/crembl - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. torfs-ict/crembl

ActiveLibrary[HTTP &amp; Networking](/categories/http)

torfs-ict/crembl
================

Crembl API wrapper, allows you send regular (or registered) mail through the Crembl web service.

1.0.0(9y ago)011MITPHPPHP &gt;=7.0.0

Since Jan 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/torfs-ict/crembl)[ Packagist](https://packagist.org/packages/torfs-ict/crembl)[ Docs](https://github.com/torfs-ict/crembl)[ RSS](/packages/torfs-ict-crembl/feed)WikiDiscussions master Synced 1mo ago

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

Description
===========

[](#description)

API wrapper for the [Crembl](http://www.crembl.be) web service.

Please note that we are in no way affiliated with neither Crembl nor bpost. Issues regarding this API wrapper can be filed at our [GitHub page](https://github.com/torfs-ict/crembl/issues), while issues regarding to the actual API should be filed with [Crembl](http://www.crembl.be/en/more/contact/).

Usage
=====

[](#usage)

Before using this API make sure to check out the official [documentation](http://www.crembl.be/en/more/crembl-downloads). The API only has three methods:

1. Creating a task (i.e. document to be sent): `createTask`.
2. Uploading a file for an existing task: `uploadFile` or `uploadFileFromString`.
3. Retrieve information about an existing task: `getTaskInfo`.

Error handling
==============

[](#error-handling)

Whenever an error occurs, the client will throw an exception of type [`Crembl\Exception`](src/Exception/Exception.php), where you can find the actual error information by calling the `getInfo()` method.

Examples
========

[](#examples)

```
use bpost\Crembl\Client;
use bpost\Crembl\Config\TaskConfig;

$client = new Client('');
```

Creating a task
---------------

[](#creating-a-task)

```
$task = new TaskConfig();
$task
    ->setDocumentTypeRegular()
    ->setAddresseeLine1('Microsoft Belgium')
    ->setAddresseeLine2('Corporate Village - Bayreuth Building')
    ->setAddressCountry('BE')
    ->setAddressZipCode('1935')
    ->setAddressCity('Zaventem')
    ->setAddressStreetName('Leonardo Da Vincilaan')
    ->setAddressStreetNumber('3');
$id = $client->createTask($task);
```

Returns the id generated by the Crembl API e.g. `A12345678910111213141516171819209`.

Uploading a file
----------------

[](#uploading-a-file)

```
$success = $client->uploadFile($id, __DIR__ . '/myletter.pdf');
```

Returns `TRUE` in case of success, or throws an error otherwise.

Retrieve task information
-------------------------

[](#retrieve-task-information)

```
$task = $client->getTaskInfo($id);
var_dump($task);
```

Returns an object of type [`Crembl\Task\Info`](src/Task/Info.php).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

3411d ago

### Community

Maintainers

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

---

Top Contributors

[![kristoftorfs](https://avatars.githubusercontent.com/u/8181149?v=4)](https://github.com/kristoftorfs "kristoftorfs (1 commits)")

---

Tags

jsonapirestmailwrappercremblbpost

### Embed Badge

![Health badge](/badges/torfs-ict-crembl/health.svg)

```
[![Health](https://phpackages.com/badges/torfs-ict-crembl/health.svg)](https://phpackages.com/packages/torfs-ict-crembl)
```

###  Alternatives

[gnikyt/basic-shopify-api

A basic Shopify API wrapper with REST and GraphQL support, powered by Guzzle.

245514.8k5](/packages/gnikyt-basic-shopify-api)[zoonman/linkedin-api-php-client

LinkedIn API PHP SDK with OAuth 2.0 &amp; CSRF support. Can be used for social sign in or sharing on LinkedIn. Examples. Documentation.

127704.0k](/packages/zoonman-linkedin-api-php-client)

PHPackages © 2026

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