PHPackages                             misterbrownrsa/laravel-dhl-tas - 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. misterbrownrsa/laravel-dhl-tas

ActiveLibrary[API Development](/categories/api)

misterbrownrsa/laravel-dhl-tas
==============================

A basic API to easily generate the necessary requests for Trade Automation Service for Laravel

1.0.0(8y ago)1341MITPHPPHP &gt;=7.0

Since Dec 3Pushed 8y agoCompare

[ Source](https://github.com/MisterBrownRSA/laravel-dhl-tas)[ Packagist](https://packagist.org/packages/misterbrownrsa/laravel-dhl-tas)[ RSS](/packages/misterbrownrsa-laravel-dhl-tas/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel DHL API
===============

[](#laravel-dhl-api)

I needed a laravel-esque wrapper to make calls to the DHL XML service, but couldn't find any. So I created one. It was specifically designed for my own personal use, but you are welcome to submit issues, and I'll look into refactoring it so that it can be used in a more general purpose fashion.

Getting Started
---------------

[](#getting-started)

### Prerequisites

[](#prerequisites)

This was built and tested ONLY on Laravel 5.5, although I'm sure it'll work on previous versions as well.

### Installing

[](#installing)

```
composer require misterbrownrsa/laravel-dhl-tas

```

Since Laravel 5.5 automatically includes the service provider, it won't be necessary to register it. However, if you really want to, run the following command

```

```

\##Usage Examples

Trade Automation Services provides duties and tax details when trying to calculate total landed cost for a shipment

```
$products = [];
foreach ($cart->items as $cartItem) {
    $products[] = [
        'name'     => $cartItem->warehouse->product->name,
        'price'    => $cartItem->price,
        'quantity' => $cartItem->quantity,
        'weight'   => $cartItem->warehouse->product->weight,
        'hscode'   => "6404.1900", //retrieved from their HSCode systems
    ];
}

$TAS = new \MisterBrownRSA\DHL\TAS\DHLTAS();
$TAS->addProduct($products);
$TAS->total($cart->subtotal);
$TAS->reference('A1AQV');
$TAS->toCountry('ZW');
$results = $TAS->doCurlPost();

```

Dump the request

```
dump($TAS->toXMML());

```

Dump the response

```
dump($TAS->doCurlPost());

```

Authors
-------

[](#authors)

- **Duwayne Brown** - *Initial work* - [MisterBrownRSA](https://github.com/MisterBrownRSA)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

Acknowledgments
---------------

[](#acknowledgments)

- Thanks David for your help during the implementation process

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3082d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/misterbrownrsa-laravel-dhl-tas/health.svg)

```
[![Health](https://phpackages.com/badges/misterbrownrsa-laravel-dhl-tas/health.svg)](https://phpackages.com/packages/misterbrownrsa-laravel-dhl-tas)
```

###  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)
