PHPackages                             alexanderpoellmann/laravel-post-plc - 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. alexanderpoellmann/laravel-post-plc

ActiveLibrary[API Development](/categories/api)

alexanderpoellmann/laravel-post-plc
===================================

A laravel integration for the Austrian Post Label Center (Österreichische Post).

v0.1.2(5mo ago)41.8k2[2 PRs](https://github.com/AlexanderPoellmann/Laravel-Post-PLC/pulls)MITPHPPHP ^8.4CI passing

Since Apr 28Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/AlexanderPoellmann/Laravel-Post-PLC)[ Packagist](https://packagist.org/packages/alexanderpoellmann/laravel-post-plc)[ Docs](https://github.com/alexanderpoellmann/laravel-post-plc)[ RSS](/packages/alexanderpoellmann-laravel-post-plc/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (15)Versions (6)Used By (0)

A laravel integration for the Austrian Post Label Center (Österreichische Post).
================================================================================

[](#a-laravel-integration-for-the-austrian-post-label-center-österreichische-post)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3c48c084d69865adc6e485a0f4eae1d5342c88504585126de8482533b3e6edf2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c6578616e646572706f656c6c6d616e6e2f6c61726176656c2d706f73742d706c632e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alexanderpoellmann/laravel-post-plc)[![GitHub Tests Action Status](https://camo.githubusercontent.com/0a57ffc0e59d3b2430cf2ee35d03cf5cf5924e559f7ca4d9362de0bdad4222c4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616c6578616e646572706f656c6c6d616e6e2f6c61726176656c2d706f73742d706c632f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/alexanderpoellmann/laravel-post-plc/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/49efe70e3e53d12fb0ec5868b2434cd7fb6550e262d5b104021dba72bcffba0b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616c6578616e646572706f656c6c6d616e6e2f6c61726176656c2d706f73742d706c632f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/alexanderpoellmann/laravel-post-plc/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/fd35718c6daaba47245c461055f21338eea34436657c3f709554e5cff2ef0c88/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c6578616e646572706f656c6c6d616e6e2f6c61726176656c2d706f73742d706c632e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alexanderpoellmann/laravel-post-plc)

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

[](#installation)

You can install the package via composer:

```
composer require alexanderpoellmann/laravel-post-plc
```

Add the following entry to your `config/services.php` file:

```
    'post-plc' => [
        'client-id'     => env('PLC_CLIENT_ID'),
        'org-unit-id'   => env('PLC_ORG_UNIT_ID'),
        'org-unit-guid' => env('PLC_ORG_UNIT_GUID'),
        'sandbox'       => env('PLC_SANDBOX', false),
    ],
```

Usage
-----

[](#usage)

```
use AlexanderPoellmann\LaravelPostPlc\Classes\Address;
use AlexanderPoellmann\LaravelPostPlc\Classes\Collo;
use AlexanderPoellmann\LaravelPostPlc\Classes\Shipment;
use AlexanderPoellmann\LaravelPostPlc\Facades\LaravelPostPlc;
use AlexanderPoellmann\LaravelPostPlc\Enums\PostProductCodes;
use AlexanderPoellmann\LaravelPostPlc\Enums\Features;
use AlexanderPoellmann\LaravelPostPlc\DataTransferObjects\FeatureRow;
use AlexanderPoellmann\LaravelPostPlc\Enums\ServiceMethods;

$from = (new Address())
    ->id(sprintf('%05d', mt_rand(1, 10000)))
    ->name('Absender GmbH')
    ->route('Rochusmarkt')
    ->street_number('5')
    ->post_code('1030')
    ->city('Wien')
    ->country_code('AT')
    ->get();

$to = (new Address())
    ->id(sprintf('%05d', mt_rand(1, 10000)))
    ->name('Musterfirma GmbH', 'c/o Frau Maria Muster')
    ->route('Landesgerichtsstraße')
    ->street_number('1')
    ->post_code('1010')
    ->city('Wien')
    ->country_code('AT')
    ->get();

$shipment = (new Shipment())
    ->withPrinter()
    ->withNumber(sprintf('%05d', mt_rand(1, 10000)))
    ->using(PostProductCodes::PaketPremiumOesterreichB2B)
    ->from($from)
    ->to($to)
    ->withFeatures([
        FeatureRow::from([
            'ThirdPartyID' => Features::CashOnDelivery,
            'Value1' => '199.99', // Amount (decimal)
            'Value2' => 'EUR',    // Currency (ISO code)
            'Value3' => 'AT99 9999 9999 9999 9999|BICCODE|Muster GmbH', // IBAN|BIC|Account holder
            'Value4' => 'Order #12345', // Payment reference
        ]),
    ])
    ->parcels([
        (new Collo)->weight(0.4)->get(),
        (new Collo)->weight(5.2)->get(),
    ])->get();

LaravelPostPlc::call(ServiceMethods::ImportShipment, $shipment, true);

$object = LaravelPostPlc::toCollection();

ray($object);
```

The `PostProductCodes` enum has a few helper methods to make it easier to decide which options you might show to your users, when creating shipments:

```
use AlexanderPoellmann\LaravelPostPlc\Enums\PostProductCodes;

// check whether the selected product is available for Austrian addresses only
$isDomestic = PostProductCodes::PaketOesterreich->isDomestic();

// check whether the selected product requires you to specify its weight
$requiresWeight = PostProductCodes::PaketPremiumInternational->requiresWeight();

// check whether the selected product is available only for business-to-business shipments
$forBusinessOnly = PostProductCodes::PaketPremiumOesterreichB2B->forBusinessOnly();
```

The `FeatureRow` enum has a few helper methods as well, here are some examples:

```
FeatureRow::cashOnDelivery(
    amount: '199.99',
    currency: 'EUR',
    iban: 'AT99 9999 9999 9999 9999',
    bic: 'ABCDEFFXXX',
    accountHolder: 'Muster GmbH',
    paymentReference: 'Order #12345',
]);

FeatureRow::fragile()

FeatureRow::personalDelivery()
```

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)

- [Alexander Manfred Pöllmann](https://github.com/AlexanderPoellmann)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance83

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.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 ~292 days

Total

3

Last Release

159d ago

PHP version history (2 changes)v0.1.0PHP ^8.1

v0.1.2PHP ^8.4

### Community

Maintainers

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

---

Top Contributors

[![AlexanderPoellmann](https://avatars.githubusercontent.com/u/6631793?v=4)](https://github.com/AlexanderPoellmann "AlexanderPoellmann (77 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (20 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (10 commits)")[![hnasiry](https://avatars.githubusercontent.com/u/14115146?v=4)](https://github.com/hnasiry "hnasiry (1 commits)")

---

Tags

laravellaravel-post-plc

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/alexanderpoellmann-laravel-post-plc/health.svg)

```
[![Health](https://phpackages.com/badges/alexanderpoellmann-laravel-post-plc/health.svg)](https://phpackages.com/packages/alexanderpoellmann-laravel-post-plc)
```

###  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)[combindma/laravel-facebook-pixel

Meta pixel integration for Laravel

4956.9k](/packages/combindma-laravel-facebook-pixel)[stechstudio/laravel-hubspot

A Laravel SDK for the HubSpot CRM Api

2971.0k](/packages/stechstudio-laravel-hubspot)[njoguamos/laravel-plausible

A laravel package for interacting with plausible analytics api.

208.8k](/packages/njoguamos-laravel-plausible)[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)
