PHPackages                             smart-dato/duty-refunds-landmark - 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. smart-dato/duty-refunds-landmark

ActiveLibrary[API Development](/categories/api)

smart-dato/duty-refunds-landmark
================================

Duty Refunds Landmark API SDK for Laravel

0.0.7(6mo ago)0957↓32.3%MITPHPPHP ^8.2|^8.3|^8.4CI failing

Since Jul 3Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/smart-dato/duty-refunds-landmark)[ Packagist](https://packagist.org/packages/smart-dato/duty-refunds-landmark)[ Docs](https://github.com/smart-dato/duty-refunds-landmark)[ GitHub Sponsors](https://github.com/SmartDato)[ RSS](/packages/smart-dato-duty-refunds-landmark/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (14)Versions (8)Used By (0)

Duty Refunds Landmark API SDK
=============================

[](#duty-refunds-landmark-api-sdk)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2fb399611ce66dc50de24b7e79b07a25aa03c431f5d118b7d5703d907e1e50f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736d6172742d6461746f2f647574792d726566756e64732d6c616e646d61726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/smart-dato/duty-refunds-landmark)[![GitHub Tests Action Status](https://camo.githubusercontent.com/8a0437cd06fdfd0970bfba314cfad923dcabc26428b61d4bfa50afbb4bcf6f16/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736d6172742d6461746f2f647574792d726566756e64732d6c616e646d61726b2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/smart-dato/duty-refunds-landmark/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/c95dc04b780b8cce195dbd4966e88820df1754a4232f04346aba94cc16fd4cbf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736d6172742d6461746f2f647574792d726566756e64732d6c616e646d61726b2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/smart-dato/duty-refunds-landmark/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/91e050024f7865e48890984f779d554ec3686724e460cef2a9efbfb2e707b9c9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736d6172742d6461746f2f647574792d726566756e64732d6c616e646d61726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/smart-dato/duty-refunds-landmark)

This is a Laravel plugin for the [Duty Refunds Landmark API](https://duty-refunds-landmark.redoc.ly/)

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

[](#installation)

You can install the package via composer:

```
composer require smart-dato/duty-refunds-landmark
```

You can publish the config file with:

```
php artisan vendor:publish --tag="duty-refunds-landmark-config"
```

This is the contents of the published config file:

```
return [
    'url' => env('DUTY_REFUNDS_LANDMARK_URL', 'https://api.stage.dutyrefunds.co.uk/landmark'),
    'username' => env('DUTY_REFUNDS_LANDMARK_USERNAME', ''),
    'password' => env('DUTY_REFUNDS_LANDMARK_PASSWORD', ''),
];
```

Usage
-----

[](#usage)

```
    $shipment = new \SmartDato\DutyRefundsLandmark\Data\Shipment\ShipmentData(
        reference: "3245325",
        shipTo: new \SmartDato\DutyRefundsLandmark\Data\Shipment\AddressData(
            name: "Test Company",
            attention: "Ole Olsen",
            address1: "5130 Halford Drive",
            address2: "Building #C",
            address3: "Unit 1",
            city: "Windsor",
            state: "ON",
            postalCode: "N9A6J3",
            country: \SmartDato\DutyRefundsLandmark\Enums\Country::CANADA,
            phone: "1-519-737-9101",
            email: "orders@test.com"
        ),
        orderTotal: 187.98,
        orderInsuranceFreightTotal: 20.65,
        shipmentInsuranceFreight: 20.65,
        itemsCurrency: \SmartDato\DutyRefundsLandmark\Enums\Currency::United_States_Dollar,
        produceLabel: false,
        labelFormat: \SmartDato\DutyRefundsLandmark\Enums\LabelFormat::PDF,
        labelEncoding: \SmartDato\DutyRefundsLandmark\Enums\LabelEncoding::LINKS,
        vendorInformation: new \SmartDato\DutyRefundsLandmark\Data\Shipment\VendorData(
            name: "Test Company Legal Name",
            phone: "12223334444",
            email: "contact@vendor.com",
            address1: "Sample Company Street",
            address2: "Suite 135",
            city: "Santa Barbara",
            state: "CA",
            postalCode: "93101",
            country: \SmartDato\DutyRefundsLandmark\Enums\Country::UNITED_STATES,

            businessNumber: "12345",
            RGRNumber: "123",
            IOSSNumber: "IM1234567891",
            EORINumber: "12345"
        ),
        package: new \SmartDato\DutyRefundsLandmark\Data\Shipment\PackageData(
            weightUnit: \SmartDato\DutyRefundsLandmark\Enums\Units\WeightUnit::Pound,
            weight: 4.5,
            dimensionsUnit: \SmartDato\DutyRefundsLandmark\Enums\Units\DimensionUnit::Inches,
            length: 12,
            width: 12,
            height: 12,
            packageReference: "98233310"
        ),
        items: [
            new \SmartDato\DutyRefundsLandmark\Data\Shipment\ItemData(
                sku: "7224059",
                quantity: 2,
                unitPrice: 93.99,
                description: "Women's Shoes",
                hsCode: "640399.30.00",
                countryOfOrigin: \SmartDato\DutyRefundsLandmark\Enums\Country::CHINA,
                url: "",
                hs: new \SmartDato\DutyRefundsLandmark\Data\Shipment\HarmonizedSystemData(
                    code: '6403993000',
                    region: 'US'
                ),
                dangerousGood: new \SmartDato\DutyRefundsLandmark\Data\Shipment\DangerousGoodData(
                    containsDangerousGoods: true,
                    unCode: "UN3481",
                    packingGroup: \SmartDato\DutyRefundsLandmark\Enums\PackingGroup::II,
                    packingInstructions: "PS967S1",
                    weight: 10,
                    weightUnit: \SmartDato\DutyRefundsLandmark\Enums\Units\WeightUnit::Kilogram,
                    volume: 30,
                    volumeUnit: \SmartDato\DutyRefundsLandmark\Enums\Units\VolumeUnit::CubicCentimeter
                )

            ),
        ]
    );

    $connector = new \SmartDato\DutyRefundsLandmark\DutyRefundsLandmark();
    $response = (new \SmartDato\DutyRefundsLandmark\Resource\Shipment($connector))
        ->importShipment($shipment);
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [SmartDato](https://github.com/smart-dato)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance68

Regular maintenance activity

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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 ~81 days

Recently: every ~105 days

Total

7

Last Release

188d ago

PHP version history (2 changes)0.0.1PHP ^8.2

0.0.7PHP ^8.2|^8.3|^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/c3006db55caec62526937fa2d941da32fc5e69e2ca86a52e87c8046da5958d82?d=identicon)[smart-dato](/maintainers/smart-dato)

---

Top Contributors

[![tschigo](https://avatars.githubusercontent.com/u/344100?v=4)](https://github.com/tschigo "tschigo (14 commits)")[![michael-tscholl](https://avatars.githubusercontent.com/u/178569346?v=4)](https://github.com/michael-tscholl "michael-tscholl (1 commits)")

---

Tags

laravelSmartDatoduty-refunds-landmark

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/smart-dato-duty-refunds-landmark/health.svg)

```
[![Health](https://phpackages.com/badges/smart-dato-duty-refunds-landmark/health.svg)](https://phpackages.com/packages/smart-dato-duty-refunds-landmark)
```

###  Alternatives

[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)[codebar-ag/laravel-zammad

Zammad integration with Laravel

106.1k](/packages/codebar-ag-laravel-zammad)[tapp/filament-webhook-client

Add a Filament resource and a policy for Spatie Webhook client

1120.2k](/packages/tapp-filament-webhook-client)

PHPackages © 2026

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