2017 © Pedro Peláez
 

library aramex

Aramex API client

image

200mph/aramex

Aramex API client

  • Sunday, November 6, 2016
  • by 200MPH
  • Repository
  • 2 Watchers
  • 1 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 10 % Grown

The README.md

ARAMEX API Client., (*1)

This package allows for tracking only for now. However another functions still under development. Contributors are very welcome :), (*2)

Usage:, (*3)

use thm\Aramex\AramexClient;
use thm\Aramex\ServiceBuilder\Service\TrackingService\TrackingService;
use thm\Aramex\AramexException;

try {

    $client = new AramexClient();
    $client->setAccountCountryCode('GB')
           ->setAccountEntity('ABC')
           ->setAccountNumber(123456)
           ->setAccountPin(1234)
           ->setUserName('yourmail@domain.com')
           ->setPassword('aramex_password_here');

    $ts = new TrackingService($client);
    $ts->setShipments( array('Ship111111111', 'Ship22222222', 'Ship3333333') )
       ->sendRequest();

    // return tracking collection
    $tracks = $ts->getResponse()->getTracks();
    var_dump($tracks);
    foreach($tracks as $track) {

        var_dump($track->getWaybillNumber());

    }

    // get whole object
    var_dump($ts->getResponse());

    // catch errors
    var_dump($ts->getResponse()->hasErrors());
    var_dump($ts->getResponse()->getNotifications());


} catch (AramexException $ae) {

    var_dump($ae->getMessage());

}

More examples are in ./examples folder, (*4)

The Versions

06/11 2016

dev-master

9999999-dev https://github.com/200MPH/aramex

Aramex API client

  Sources   Download

MIT

The Requires

  • php >=5.6.0
  • ext-soap *

 

The Development Requires

by Wojciech Brozyna

shipping carrier aramex

06/11 2016

1.0.0

1.0.0.0 https://github.com/200MPH/aramex

Aramex API client

  Sources   Download

MIT

The Requires

  • php >=5.6.0
  • ext-soap *

 

The Development Requires

by Wojciech Brozyna

shipping carrier aramex

06/11 2016

dev-develop

dev-develop https://github.com/200MPH/aramex

Aramex API client

  Sources   Download

MIT

The Requires

  • php >=5.6.0
  • ext-soap *

 

The Development Requires

by Wojciech Brozyna

shipping carrier aramex