Download the PHP package alexedimensionz/royal-mail-price-calculator without Composer
On this page you can find all versions of the php package alexedimensionz/royal-mail-price-calculator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alexedimensionz/royal-mail-price-calculator
More information about alexedimensionz/royal-mail-price-calculator
Files in alexedimensionz/royal-mail-price-calculator
Package royal-mail-price-calculator
Short Description A library to calculate the cost of sending a package with Royal Mail.
License MIT
Homepage https://github.com/e-dimensionz/royal-mail-price-calculator
Informations about the package royal-mail-price-calculator
Royal Mail Price Calculator
This library is forked to revive it. Built by WyldCode a subsidiary of e-dimensionz, Inc
It allows you to calculate the cost of sending a package with Royal Mail, updated prices and extends support to all package prices.
Usage
Install the latest version with composer require alexedimensionz/royal-mail-price-calculator
Main Changes from Justin Hook's Repo
- Removed Doctrine requirement
- Added all shipping types
- Added International shipping options and prices
- Continuously Updating price lists
Supported Services
Service | Class |
---|---|
1st Class Service | FirstClassService() |
2nd Class Service | SecondClassService() |
Signed For 1st Class | SignedForFirstClassService() |
Signed For 2nd Class | SignedForSecondClassService() |
Guaranteed by 9am | GuaranteedByNineAmService() |
Guaranteed by 9am with Saturday Guarantee | GuaranteedByNineAmWithSaturdayService() |
Guaranteed by 1pm | GuaranteedByOnePmService() |
Guaranteed by 1pm with Saturday Guarantee | GuaranteedByOnePmWithSaturdayService() |
International Economy | InternationalEconomy() |
International Standard | InternationalStandard() |
International Signed | InternationalSigned() |
International Tracked | InternationalTracked() |
International Tracked And Signed | InternationalTrackedAndSigned() |
Example for UK Delivery Targets
Will output something like:
Example for International Delivery Targets
Will output something like:
Useful Functions
Royal Mail has 5 delivery zones:
- UK
- Europe
- International (Zone 1)
- International (Zone 2)
- US (Zone 3)
You can find the zone code for your country by using the 2-Letter ISO code.
Will output: