UPS +

UPS PHP API

Connect with UPS Using PHP and EasyPost

Get Started with EasyPost Talk to a Shipping Expert

Using PHP to Integrate with UPS?

You can’t do it through UPS. They use SOAP/XML for their endpoints with absolutely no client libraries or documentation to support you, but you can use Easypost to connect to UPS today using PHP.

With EasyPost’s UPS PHP API, you can:
  • Print labels at the industry’s lowest price
  • Track every outbound (or inbound) package
  • Verify every address, domestic or international
  • Shop for rates across your shipping accounts
  • Automate package insurance with low premiums
              
$to_address = \EasyPost\Address::create(...)
$from_address = \EasyPost\Address::create(...)
$parcel = \EasyPost\Parcel::create(array(
  'predefined_package' => 'Parcel'
  'weight' => 28
));

$shipment = \EasyPost\Shipment::create(array(
  'to_address' => $to_address
  'from_address' => $from_address,
  'parcel' => $parcel
));

$shipment->buy(array('rate' => $shipment->lowest_rate())); 
            
Truck
Tracking Packages

Track packages across all major carriers.

Mailbox
Address Verification

Validate domestic and international addresses.

Flag
International & Customs

Learn how to handle international shipping seamlessly.

Money
Shipping Insurance

Shipping insurance for all items sent with EasyPost.

Leading Companies Rely on EasyPost

Teespring

QALO uses EasyPost to automate their returns for an unbeatable customer experience.

EP&V

With EasyPost's API, Expedited Passports & Visas cut their operational load in half.

Casper

Casper sped up their European launch thanks to EasyPost's support of over 30+ European carriers.

EasyPost in the News

Connect to EasyPost Today

Sign up and start shipping in the same day with our PHP Library. If you have any questions, or if you want to talk logistics, feel free to reach out to one of our shipping experts.