PHPackages                             dinja/mytnt-express-connect-italy - 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. dinja/mytnt-express-connect-italy

ActiveLibrary[API Development](/categories/api)

dinja/mytnt-express-connect-italy
=================================

myTNT Italy Express Connect (API) client

3.0.16(10mo ago)11.6k↓45.5%MITPHPPHP &gt;=7.0

Since Nov 30Pushed 10mo agoCompare

[ Source](https://github.com/benjiam-gh/tnt)[ Packagist](https://packagist.org/packages/dinja/mytnt-express-connect-italy)[ RSS](/packages/dinja-mytnt-express-connect-italy/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (3)Versions (26)Used By (0)

TNT ExpressConnect
------------------

[](#tnt-expressconnect)

### Client version for myTNT Italy APIs

[](#client-version-for-mytnt-italy-apis)

Original upstream repository documentation
------------------------------------------

[](#original-upstream-repository-documentation)

PHP client which helps developers integrate TNT EC with their application. This package supports following services:

1. [Shipping](https://github.com/200MPH/tnt/blob/develop/docs/Shipping/howTo.md)
2. [Tracking](https://github.com/200MPH/tnt/blob/develop/docs/Tracking/howTo.md)

Forked repository documentation
-------------------------------

[](#forked-repository-documentation)

This package is an unofficial PHP client for myTNT Italy Express Connect APIs.

Installing
----------

[](#installing)

Install with composer

```
composer require dinja/mytnt-express-connect-italy
```

Usage
-----

[](#usage)

### Shipping

[](#shipping)

1. Minimal request to create shipment

```
use thm\tnt_ec\service\ShippingService\ShippingService;

$timestamp = new \DateTime();
$timezone = new \DateTimeZone('Europe/Rome');
$timestamp->setTimezone($timezone);

$shipping = new ShippingService('User ID', 'Password');

$shipping->setAccountNumber('') // will be provided by your TNT representative.
         ->setSenderAccId(''); // will be provided by your TNT representative.

$c1 = $shipping->addConsignment()->setConReference('')
                                 ->setContype('T')
                                 ->setPaymentind('S') // who pays for shipping S-sender, R-receiver
                                 ->setItems(1)
                                 ->setTotalWeight("00001000")
                                 ->setTotalVolume(0.00)
                                 ->setPackagetype('C')
                                 ->setDivision('D')
                                 ->setCollectionDate($timestamp->format('Ymd'))
                                 ->setService('N'); // will be provided by your TNT representative.

$c1->setSender()->setCompanyName('Your company')
                ->setAddressLine('Address 1')
                ->setCity('')
                ->setPostcode('')
                ->setProvince('')
                ->setCountry('')
                ->setContactDialCode('')
                ->setContactPhone('')
                ->setContactEmail('');

$c1->setReceiver()->setCompanyName('Receiver address. NOT DELIVERY!')
                  ->setAddressLine('')
                  ->setCity('')
                  ->setPostcode('')
                  ->setProvince('')
                  ->setCountry('')
                  ->setContactDialCode('')
                  ->setContactPhone('')
                  ->setContactEmail('');

$response = $shipping->send();
```

2. Delete Shipment

```
use thm\tnt_ec\service\ShippingService\ShippingService;

$timestamp = new \DateTime();
$timezone = new \DateTimeZone('Europe/Rome');
$timestamp->setTimezone($timezone);

$shipping = new ShippingService('User ID', 'Password');

$shipping->setAccountNumber('') // will be provided by your TNT representative.
         ->setSenderAccId(''); // will be provided by your TNT representative.

$c1 = $shipping->addConsignment()->setConAction("D")
               ->setConNumber('tracking_number'); // Shipment Number to delete

$response = $shipping->send();
```

### Tracking

[](#tracking)

```
use thm\tnt_ec\service\TrackingService\TrackingService;

$ts = new TrackingService('User ID', 'Password');
$ts->setAccountNumber('');  // will be provided by your TNT representative.

$response = $ts->searchByConsignment(array('tracking_number')); // Shipment Number to search
```

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance55

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 94.5% 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 ~139 days

Recently: every ~203 days

Total

24

Last Release

301d ago

Major Versions

1.0.2 → 2.0.02018-01-22

2.0.2 → 3.0.02018-08-17

1.0.3 → 3.0.162025-09-05

PHP version history (2 changes)1.0.0PHP &gt;=5.6.0

3.0.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe26bca7fab4f893154a4f3090af883212538fd4b9e6b2ecdc713223de87064b?d=identicon)[dinja-srl](/maintainers/dinja-srl)

![](https://www.gravatar.com/avatar/27145b02e93ff09238e6dce3d28dfaad4f32ded3d57e59a70b130d23d19b1aa2?d=identicon)[benjiam](/maintainers/benjiam)

---

Top Contributors

[![200MPH](https://avatars.githubusercontent.com/u/16258307?v=4)](https://github.com/200MPH "200MPH (138 commits)")[![benjiam-gh](https://avatars.githubusercontent.com/u/43422150?v=4)](https://github.com/benjiam-gh "benjiam-gh (7 commits)")[![aconits](https://avatars.githubusercontent.com/u/10596597?v=4)](https://github.com/aconits "aconits (1 commits)")

---

Tags

tnttnt trackingtnt express connecttnt shippingmytnt

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/dinja-mytnt-express-connect-italy/health.svg)

```
[![Health](https://phpackages.com/badges/dinja-mytnt-express-connect-italy/health.svg)](https://phpackages.com/packages/dinja-mytnt-express-connect-italy)
```

###  Alternatives

[200mph/tnt-express-connect

TNT ExpressConnect (API) client

2229.0k](/packages/200mph-tnt-express-connect)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[magento/community-edition

Magento 2 (Open Source)

12.2k53.6k13](/packages/magento-community-edition)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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