Download the PHP package tocaan/aramex without Composer

On this page you can find all versions of the php package tocaan/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

Laravel Aramex

Adds Aramex Functionality to your Laravel project.

This repo is a full rebuild of DigitalCloud/aramex.

Table of Contents

Installation

Run the following command to install the latest applicable version of the package:

composer require tocaan/aramex

You can publish the config-file with:

php artisan vendor:publish --provider="ExtremeSa\Aramex\AramexServiceProvider" --tag="config"

You can publish the resources files with:

php artisan vendor:publish --provider="ExtremeSa\Aramex\AramexServiceProvider" --tag="lang"

QuickStart

Location

Fetch Countries

This method allows users to get the world countries list.

Aramex::fetchCountries()->run();

Fetch Country

This method allows users to get details of a certain country.

Aramex::fetchCountry()
    ->setCode('PS')
    ->run();

Fetch States

This method allows users to get all the states within a certain country (country code).

Aramex::fetchStates()
    ->setCountryCode('AE')
    ->run();

Fetch Cities

This method allows users to get all the cities within a certain country (country code). And allows users to get list of the cities that start with a specific prefix. The required nodes to be filled are Client Info and Country Code.

Aramex::fetchCities()
    ->setCountryCode('AE')
    ->run();

Validate Address

This method Allows users to search for certain addresses and make sure that the address structure is correct.

Aramex::validateAddress()
    ->setAddress(
        (new Address()) ...
    )->run();

Rate

Calculate Rate

This method allows users to get rate for source/destinations shipment.

$source = (new Address()) ... ;

$destination = (new Address()) ...;

$details = (new ShipmentDetails()) ...;

Aramex::calculateRate()
    ->setOriginalAddress($source)
    ->setDestinationAddress($destination)
    ->setShipmentDetails($details)
    ->setPreferredCurrencyCode('USD')
    ->run();

Shipping

Create Pickup

This method allows users to create a pickup request.

$source = (new Address());

$contact = (new Contact());

$pickupItem = (new PickupItem());

$pickup = (new Pickup())
    ->setPickupAddress($source)
    ->setPickupContact($contact)
    ->setPickupLocation('Reception')
    ->setPickupDate(Carbon::now()->timestamp)
    ->setReadyTime(Carbon::now()->timestamp)
    ->setLastPickupTime(Carbon::now()->addDay()->timestamp)
    ->setClosingTime(Carbon::now()->addDay()->timestamp)
    ->setStatus('Pending')
    ->setReference1('')
    ->addPickupItem($pickupItem);

$labelInfo = (new LabelInfo())
    ->setReportId(9201)
    ->setReportType('URL');

Aramex::createPickup()
    ->setLabelInfo($labelInfo)
    ->setPickup($pickup)
    ->run();

Cancel Pickup

This method allows you to cancel a pickup as long as it is un-assigned or pending details.

Aramex::cancelPickup()
    ->setPickupGUID('PICKUP_GUID')
    ->run();

Create Shipments

This method allows users to create shipments on Aramex’s system.

Aramex::createShipments()->run();

Get Last Shipments Numbers Range

This method allows you to inquire about the last reserved range using a specific entity and product group

Aramex::getLastShipmentsNumbersRange()
    ->setEntity('ENTITY')
    ->setProductGroup('PRODUCT_GROUP')
    ->run();

Print Label

This method allows the user to print a label for an existing shipment.

$labelInfo = (new \ExtremeSa\Aramex\API\Classes\LabelInfo())
    ->setReportId(9201)
    ->setReportType('URL');

Aramex::printLabel()
    ->setShipmentNumber('SHIPMENT_NO')
    ->setLabelInfo()
    ->run();

Reserve Shipment Number Range

This method allows you to reserve a range of shipment numbers.

Aramex::reserveShipmentNumberRange()->run();

Schedule Delivery

This method allows you to schedule the delivery of a shipment at a specified time and place (Longitude and Latitude)

Aramex::scheduleDelivery()->run();

Tracking

Track Pickup

This method allows the user to track an existing pickup’s updates and latest status.

Aramex::trackPickup()
    ->setReference('PICKUP_NO')
    ->setPickup('PICKUP') // any number
    ->run();

Track Shipments

This method allows the user to track an existing shipment’s updates and latest status.

Aramex::trackShipments()
    ->setShipments(['SHIPMENT_NO'])
    ->run();

Credits


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 tocaan/aramex contains the following files

Loading the files please wait ....