2017 © Pedro Peláez
 

library aftership-laravel

Laravel 4 package to integrate with After-Ship API

image

abishekrsrikaanth/aftership-laravel

Laravel 4 package to integrate with After-Ship API

  • Thursday, June 18, 2015
  • by abishekrsrikaanth
  • Repository
  • 1 Watchers
  • 6 Stars
  • 217 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

###Laravel 4 package to Integrate with Aftership API

Build Status Bitdeli Badge endorse, (*1)

Installation

Using Composer, (*2)

 "require": {
        ....
        "abishekrsrikaanth/aftership-laravel": "1.0"
    },

Update composer:, (*3)

$ php composer.phar update

Add the provider to your app/config/app.php:, (*4)

'providers' => array(
    ...
    'Abishekrsrikaanth\Aftership\AftershipServiceProvider',
),

and the Facade info on app/config/app.php, (*5)

'aliases'   => array(
    ...
    'AfterShip'      => 'Abishekrsrikaanth\Aftership\Facades\Aftership',
),

Publish the Configuration and setup the config with the credentials of the different email providers, (*6)

php artisan config:publish abishekrsrikaanth/aftership-laravel

Couriers

Getting an instance of the Courier Object, (*7)

$courier = AfterShip::Couriers();
$response = $courier->get();

Tracking

Getting an instance of the Tracking Object, (*8)

$tracking = AfterShip::Tracking();
$response = $tracking->get($options);

Webhooks Setup

This library has in-built support to easily configure the webhook notifications of Aftership. To configure the Webhook Route, open the published configuration file and setup the following configurations., (*9)

'web_hook' => array(
        'enabled'   => true,                    //Set this to true to enable Web hook Route
        'route_url' => '/wehbooks/aftership',   //Setup the Route Url that has been configured on Aftership Control Panel
        'listener'  => array(
            'type'             => 'event',      //Can be "event" or "queue"
            'handler'          => '',           //Handler to be called when the Webhook notification is received
            'queue_name'       => '',           //Used only if the type == "queue"
            'queue_connection' => ''            //To be used if a connection based queue needs to be used
        )
    )

The Versions

18/06 2015

dev-master

9999999-dev http://abishekrsrikaanth.github.io/aftership-php-sdk

Laravel 4 package to integrate with After-Ship API

  Sources   Download

BSD-3-Clause

The Requires

 

laravel shipping tracking fedex track ups laravel-4 usps aftership dhl