2017 © Pedro Peláez
 

library smsa

laravel SMSA shipping integration

image

ahyadessam/smsa

laravel SMSA shipping integration

  • Saturday, December 2, 2017
  • by ahyadessam
  • Repository
  • 0 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Laravel SMSA Integration

    • This package is not a official package from SMSA just my develop *
  • it's a laravel package for SMSA Integration

1- Installation

  1. Require the package using composer:, (*1)

    composer require ahyadessam/smsa
    
  2. Add the service provider to the providers in config/app.php:, (*2)

    Smsa\SmsaServiceProvider::class,
    
    
  3. Add alias provider to the aliases in config/app.php:, (*3)

    'Smsa' => Smsa\SmsaFacade::class,
    
    
  4. Publish the public assets:, (*4)

    php artisan vendor:publish
    
  5. Configure your SMSA account data in config/smsa.php:, (*5)

2- Content Methods

  • Shipping : Create shipping and git AWB number.
  • PrintAWB : Create Shipping policy PDF.
  • Tracking : Get shipping tracking.
  • Cancel : Cancel shipping.

Parameters is needed

You can get more information from SMSA documentations, (*6)

Example about using

use Smsa;

class HomeController extends Controller
{
  public function smsa_shipping(){
    $parameters = [
      'refNo'         => '22222',
      'idNo'          => 'id',
      'cName'         => 'name',
      'cntry'         => 'KSA',
      'cCity'         => 'Riyadh',
      'cMobile'       => '033333333',
      'cAddr1'        => 'test',
      'cAddr2'        => '',
      'PCs'           => '1',
      'cEmail'        => 'test@test.com',
      'weight'        => '1',
      'cZip'          => '',
      'cPOBox'        => '',
      'cTel1'         => '',
      'cTel2'         => '',
      'carrValue'     => '',
      'carrCurr'      => '',
      'codAmt'        => '',
      'custVal'       => '',
      'custCurr'      => '',
      'insrAmt'       => '',
      'insrCurr'      => '',
      'itemDesc'      => '',
      'prefDelvDate'  => '',
      'gpsPoints'     => ''
    ];

    $test = Smsa::Shipping($parameters);

    dd($test);
  }

  public function print_label(){
    $get_pdf = Smsa::PrintAWB('290012998106');
    dd($get_pdf);
  }

  public function tracking(){
    $tracking = Smsa::Tracking('290012998106');
    dd($tracking);
  }

  public function cancel_shipping(){
    $cancel = smsa::Cancel('290012998106', 'test');
  }
}

3- Return structure

All methods will return array contain status (true|false) and value (your need value), (*7)

4- Contact

for any question you can contact with me on twitter @AhyadEssam, thanks, (*8)

The Versions

02/12 2017

dev-master

9999999-dev https://github.com/ahyadessam/smsa

laravel SMSA shipping integration

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api shipping packagist integration smsa

02/12 2017

1.0.3

1.0.3.0 https://github.com/ahyadessam/smsa

laravel SMSA shipping integration

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api shipping packagist integration smsa

30/11 2017

1.0.2

1.0.2.0 https://github.com/ahyadessam/smsa

laravel SMSA shipping integration

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api shipping packagist integration smsa

30/11 2017

1.0.1

1.0.1.0 https://github.com/ahyadessam/smsa

laravel SMSA shipping integration

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api shipping packagist integration smsa

30/11 2017

1.0.0

1.0.0.0 https://github.com/ahyadessam/smsa

laravel SMSA shipping integration

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api shipping packagist integration smsa