PHPackages                             martijnpieters/pakketmail - 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. martijnpieters/pakketmail

ActiveLibrary[API Development](/categories/api)

martijnpieters/pakketmail
=========================

PakketMail SDK for API version 2.0

08PHP

Since Nov 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/martijnpieters/pakketmail)[ Packagist](https://packagist.org/packages/martijnpieters/pakketmail)[ RSS](/packages/martijnpieters-pakketmail/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PakketMail SDK (PHP 7.0+)
=========================

[](#pakketmail-sdk-php-70)

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

[](#requirements)

- [PakketMail](http://www.pakketmail.nl/) account
- PHP &gt;= 7.0
- PHP cURL extension

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

[](#installation)

The easiest way to install the PakketMail SDK is to require it with [Composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx).

```
$ composer require martijnpieters/pakketmail:dev-master
```

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

[](#getting-started)

Require the Composer autoloader and include the PakketMail namespace.

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

use MartijnPieters\PakketMail;
```

Initialize a request with your username and password, and optionally the development flag `true`.

```
$pakketMailRequest = new PakketMail\Request('username', 'password', true);
```

Create a new parcel and add it to the request.

```
$shipmentProperties = [
    'pakketMailProduct' => PakketMail\Shipment::PAKKETMAIL_PRODUCT_DPD,
    'clientReference' => 'A123',
    'name1' => 'John Doe',
    'streetName' => 'Main street',
    'city' => 'Foo City',
    'postalCode' => '1234 AB',
    'country' => 'NLD',
];
$shipment = new PakketMail\Shipment($shipmentProperties);

$pakketMailRequest->addShipment($shipment);
```

Execute the request and retrieve the day close URL (`dagafsluiting`).

```
$pakketMailRequest->sendToApi();

print($pakketMailRequest->getDayCloseUrl());
```

Exceptions
----------

[](#exceptions)

Catch exceptions during the API call.

```
try {
    $pakketMailRequest->sendToApi();
} catch (PakketMail\Exception $e) {
    throw new Exception($e->getMessage());
}
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![martijnpieters](https://avatars.githubusercontent.com/u/6927498?v=4)](https://github.com/martijnpieters "martijnpieters (7 commits)")

### Embed Badge

![Health badge](/badges/martijnpieters-pakketmail/health.svg)

```
[![Health](https://phpackages.com/badges/martijnpieters-pakketmail/health.svg)](https://phpackages.com/packages/martijnpieters-pakketmail)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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