dennisvandalen / shipment-url-parser-php
This is my package shipment-url-parser-php
Fund package maintenance!
dennisvandalen
Requires
- php: ^8.0
- ext-curl: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- pestphp/pest: ^1.20
- spatie/ray: ^1.28
README
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.