dennisvandalen / shipment-url-parser-php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is my package shipment-url-parser-php

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.

About

License:MIT License


Languages

Language:PHP 100.0%