PHPackages                             smart-dato/php-olc-sdk - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. smart-dato/php-olc-sdk

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

smart-dato/php-olc-sdk
======================

PHP OLC SDK with saloon

0.0.3(1mo ago)04[1 PRs](https://github.com/smart-dato/php-olc-sdk/pulls)MITPHPPHP ^8.4|^8.5CI passing

Since Apr 18Pushed 1mo ago1 watchersCompare

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

READMEChangelog (2)Dependencies (8)Versions (11)Used By (0)

PHP OLC SDK with saloon
=======================

[](#php-olc-sdk-with-saloon)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9f546c5b9153ec8f901665ac6f47d7611ca1d611e0ff155df17f91e0315feabe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736d6172742d6461746f2f7068702d6f6c632d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/smart-dato/php-olc-sdk)[![Tests](https://camo.githubusercontent.com/3bd5ce273f6ef7568bba506e233a8fd6b5a1f6338e5b07345e332ce6bdaa6a7e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736d6172742d6461746f2f7068702d6f6c632d73646b2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/smart-dato/php-olc-sdk/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/08816c981571b4c791cf27e43bfb7dceab8e0a53d85f535682ca24066525eea2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736d6172742d6461746f2f7068702d6f6c632d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/smart-dato/php-olc-sdk)

This PHP package provides a clean and efficient integration of the OLC v2 API, a logistics platform API, enabling seamless communication with OLC's services. Built for modern PHP applications needing to interface with OLC for shipment tracking, shipment processing, and other logistics operations.

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

[](#installation)

You can install the package via composer:

```
composer require smart-dato/php-olc-sdk
```

Usage
-----

[](#usage)

```
$connector = new OlcConnector(
    url: 'https://olc.test/',
    token: '...',
);

$response = $connector->send(
    new CreateShipmentRequest(
        new ShipmentObject(
            shipmentType: 'PARCEL',
            shippingService: 'EC',
            pickupAddress: new AddressObject(
                warehouse: 'WH_1'
            ),
            deliveryAddress: new AddressObject(
                personName: "John Doe",
                companyName: 'Acme Inc.',
                street: '123 Main St',
                city: 'Anytown',
                zipcode: '12345',
                countryCode: 'DE',
            ),
            parcels: (new ParcelObjectCollection)
                ->add(new ParcelObject(
                    weight: 2.5, height: 10, length: 10, width: 10,
                ))
                ->add(new ParcelObject(
                    weight: 1.23
                ))
        )
    )
);

$response = $connector->send(
    new GetShipmentLabelRequest(
        value: 'OLS000000000001'
    )
);

$response = $connector->send(
    new GetShipmentReturnLabelRequest(
        value: 'OLS000000000001'
    )
);
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/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

41

—

FairBetter than 89% of packages

Maintenance92

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~174 days

Total

3

Last Release

39d ago

PHP version history (2 changes)0.0.1PHP ^8.4

0.0.3PHP ^8.4|^8.5

### Community

Maintainers

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

---

Top Contributors

[![michael-tscholl](https://avatars.githubusercontent.com/u/178569346?v=4)](https://github.com/michael-tscholl "michael-tscholl (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![tschigo](https://avatars.githubusercontent.com/u/344100?v=4)](https://github.com/tschigo "tschigo (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

smart-datophp-olc-sdk

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/smart-dato-php-olc-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/smart-dato-php-olc-sdk/health.svg)](https://phpackages.com/packages/smart-dato-php-olc-sdk)
```

###  Alternatives

[crescat-io/saloon-sdk-generator

Simplified SDK Scaffolding for Saloon

13130.9k7](/packages/crescat-io-saloon-sdk-generator)

PHPackages © 2026

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