Download the PHP package shipper/aramex without Composer

On this page you can find all versions of the php package shipper/aramex. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package aramex

Aramex-PHP-SDK

Packagist Downloads
Open source Laravel SDK to integrate with Aramex API's.

Installation

To publish the package and create config file aramex.php run this command

Note that this package require SOAP extension on your server.
Refer to those link for installation
> php.net
> digitalocean.com

Configurations

After install the package you should publish the package in your project, then it will create config/aramex.php file open it and set your CientInfo and set other params depending on you business model.
NOTE: read comments in config file carefully

A Brief Documentation

First you should read the official aramex documentation, understand the flow of their API's and parameters and decide the main puroposes of using aramex API.
doucmentation link: https://www.aramex.com/docs/default-source/resourses/resourcesdata/shipping-services-api-manual.pdf

You can use the Aramex interface through:

or add it to Aliases in config/app.php file

then

However, The integration has 7 main functions:
- Create Pickup.
- Cancel Pickup.
- Create Shipment.
- Calculate Rate.
- Track Shipments.
- Fetch Countries.
- Fetch Cities.
- Validate Address.

Create Pickup Method

takes array of parameters

return stdClass :

Sample Code :

Create Shipment Method

takes array of parameters

retrun stdClass:

Error Response

Sample Code

Calculate Rate

Calculate Rate API is used to get shipment pricing and details before you ship it.

it takes 4 parameters:
Aramex::calculateRate($originAddress, $destinationAddress, $shipementDetails, $currency)

$originAddress and $destinationAddress are both arrays as follows:

The $shipmentDetails parameter is an array describes some details about the shipment as follows:

The $currency is a string (3 Chars) for prefered currency calculations like USD,AED,EUR,KWD and so on.
Note that in case you want pass the dimensions, it will not take the parameters unless you pass all the height, width, length.

Sample Code

Response Object Samples

-Success Response:

-Fail Response

Track Shipments

This service show the detailed updates on the shipments you created.
Aramex::trackShipments($arrayOfShipmentIds);
Basically get the IDs of the created shipments ($createShipmentResults->Shipments->ProcessedShipment->ID) and stack the IDs in an array and pass the array to the function.

Sample Code

Repsponse Sample
Here I should mention if you pass wrong ID (Not Shipment ID) you will see the string you passed in NonExistingWaybills field.

Fetch Countries

Fetching Aramex's Countries that is supported by Aramex and stored in their database.
You can either get all countries or get specific country information by passing country code as an optional parameter.
Please note that i recommend to call this method and insert all the response to your database so you can get the countries from your database and it is based on their countries so you don't waste time and make it unefficient by calling this API whenever you want to process countries data.

Response Sample

Fetch Cities

Fetching Aramex's Cities by country code.

Response Sample

Validate Address

To validate addresses and skipping struggling with users' inputs thats not compatible with Aramex's end, You can validate addresses before creating pickups or shipments.

Response Sample

Hope this helps you well, Buy me a coffee ;)

Donate

MIT Licence

Copyright 2019 Moustafa Allahham

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


All versions of aramex with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package shipper/aramex contains the following files

Loading the files please wait ....