1. Go to this page and download the library: Download octw/aramex library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
octw / aramex example snippets
use Octw\Aramex\Aramex;
'Aramex' => Octw\Aramex\Aramex::class,
use Aramex;
'shipper' => [
'name' => 'Steve',
'email' => '[email protected]',
'phone' => '+123456789982',
'cell_phone' => '+321654987789',
'country_code' => 'US',
'city' => 'New York',
'zip_code' => 10001,
'line1' => 'Line1 Details',
'line2' => 'Line2 Details',
'line3' => 'Line3 Details',
],
'consignee' => [
'name' => 'Steve',
'email' => '[email protected]',
'phone' => '+123456789982',
'cell_phone' => '+321654987789',
'country_code' => 'US',
'city' => 'New York',
'zip_code' => 10001,
'line1' => 'Line1 Details',
'line2' => 'Line2 Details',
'line3' => 'Line3 Details',
],
'shipping_date_time' => time() + 50000, // shipping date
'due_date' => time() + 60000, // due date of the shipment
'comments' => 'No Comment', // ,comments
'pickup_location' => 'at reception', // location as pickup
'pickup_guid' => $guid, // GUID taken from createPickup method (optional)
'weight' => 1, // weight
'goods_country' => null, // optional
'number_of_pieces' => 1, // number of items
'description' => 'Goods Description, like Boxes of flowers', // description
'reference' => '01020102' // reference to print on shipment report (policy)
'shipper_reference' => '19191', // optional
'consignee_reference' => '010101', // optional
'services' => 'CODS,FIRST,FRDM, .. ' // ',' seperated string, refer to services in the official documentation
'cash_on_delivery_amount' => 10.32 // in case of CODS (in USD only "as they want")
'insurance_amount' => 0, // optional
'collect_amount' => 0, // optional
'customs_value_amount' => 0, //optional (