Download the PHP package octolize/php-fedex-api-wrapper without Composer
On this page you can find all versions of the php package octolize/php-fedex-api-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download octolize/php-fedex-api-wrapper
More information about octolize/php-fedex-api-wrapper
Files in octolize/php-fedex-api-wrapper
Package php-fedex-api-wrapper
Short Description API Wrapper for Fedex web services
License MIT
Homepage https://github.com/octolize/php-fedex-api-wrapper
Informations about the package php-fedex-api-wrapper
PHP FedEx API Wrapper
This library provides a fluid interface for constructing requests to the FedEx web service API.
General Information
All of the code under the FedEx
namespace is generated using the generate-classes-from-wsdls.php script.
Each web service has it's own class namespace. See the official FedEx web service API documentation for a description of these services.
- Address Validation Service
- Close Service
- Courier Dispatch Service
- Locations Service
- Package Movement Information Service
- Pickup Service
- Rate Service
- Return Tag Service
- Ship Service
- Track Service
- Upload Document Service
- Open Ship Service
- Validation Availability and Commitment Service
- ASYNC Transaction Service
- In Flight Shipment Service
- DGLD Service
- DGDS Service
Installation
Using the library
The easiest way to get started constructing a web service request is to create an new Request
object for the particular service you wish to use and then work backward by injecting the objects necessary to complete the request.
For example if we wish to get shipping rates, we'll create a new instance of FedEx\RateService\ComplexType\ClientDetail, and so on. See below for an example.
Rate Service request example
This assumes the FEDEX_KEY
, FEDEX_PASSWORD
, FEDEX_ACCOUNT_NUMBER
, and FEDEX_METER_NUMBER
are previously defined in your application.
Also note that by default, the library will use the beta/testing server (wsbeta.fedex.com). To use the production server (ws.fedex.com), set the location on the \SoapClient
returned from the Request. See below for an example of how to do this.
More examples can be found in the examples folder.
Change Log
All versions of php-fedex-api-wrapper with dependencies
ext-soap Version *