dennisvandalen/shipment-url-parser-php

This is my package shipment-url-parser-php

1.0.9 2024-02-01 06:29 UTC

README

Latest Version on Packagist Tests Total Downloads

This is where your description should go. Try and limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require dennisvandalen/shipment-url-parser-php

Usage

$shipment = (new ShipmentUrlParser())
    ->parse('https://dhlparcel.nl/en/private/receiving/follow-your-shipment?tt=TRACKING_CODE&pc=ZIPCODE');

//DennisVanDalen\ShipmentUrlParser\DTO\Shipment {
//  +url: "https://dhlparcel.nl/en/private/receiving/follow-your-shipment?tt=TRACKING_CODE&pc=ZIPCODE"
//  +trackingCode: "TRACKING_CODE"
//  +carrier: "DHL"
//  +carrierName: "DHL"
//}

Todo

  • Handle unknown urls

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

Create a new release

  • Fix formatting with composer format
  • Push changes to the main branch
  • Update the changelog
  • Create a new release on GitHub with GitHub CLI: gh release create 1.0.5

License

The MIT License (MIT). Please see License File for more information.