2017 © Pedro Peláez
 

library laravel-axado-api

A consumer for Axado API.

image

leroy-merlin-br/laravel-axado-api

A consumer for Axado API.

  • Monday, September 4, 2017
  • by gmsantos
  • Repository
  • 17 Watchers
  • 11 Stars
  • 5,497 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 13 Versions
  • 1 % Grown

The README.md

Laravel Axado API

Scrutinizer Code Quality Coverage Status Build Status Build Status StyleCI, (*1)

A wrapper to Axado API., (*2)

Instalation

To get started, install Laravel Axado API via the Composer package manager:, (*3)

composer require leroy-merlin-br/laravel-axado-api

Setup

Make your Product class implement VolumeInterface. Optionally, you can use VolumeTrait too. For example:, (*4)

class Product implements Axado\Volume\VolumeInterface {
    use Axado\Volume\VolumeTrait;

    public function getSku()       { return "123"; }
    public function getQuantity()  { return 10; }
    public function getPriceUnit() { return 10.5; }
    public function getHeight()    { return 10; }
    public function getLength()    { return 10; }
    public function getWidth()     { return 10; }
    public function getWeight()    { return 10; }
}

Usage

  • Setting the Token API., (*5)

    \Axado\Shipping::$token = "your-token";
    
  • Creating a new Shipping, (*6)

    $shipping = new Axado\Shipping();
    
    $shipping->setPostalCodeOrigin('04661100');
    $shipping->setPostalCodeDestination('13301430');
    $shipping->setTotalPrice('40');
    $shipping->setAdditionalDays('10');
    $shipping->setAdditionalPrice('12.6');
    
  • Adding Volume, (*7)

    $volume = new Product();
    $shipping->addVolume($volume);
    
  • Getting all quotations, (*8)

    $shipping->quotations();
    
  • Getting costs and deadline, (*9)

    $shipping->getCosts();      // in reais
    $shipping->getDeadline();   // in days
    

The Versions

04/09 2017

dev-master

9999999-dev

A consumer for Axado API.

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-curl *

 

The Development Requires

by Guilherme Guitte

laravel shipping illuminate brazil brasil cep frete axado quotation

04/09 2017

v2.0.0

2.0.0.0

A consumer for Axado API.

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-curl *

 

The Development Requires

by Guilherme Guitte

laravel shipping brazil brasil cep frete axado quotation

30/08 2017

dev-develop

dev-develop

A consumer for Axado API.

  Sources   Download

MIT

The Requires

  • php >=7.0
  • ext-curl *

 

The Development Requires

by Guilherme Guitte

laravel shipping brazil brasil cep frete axado quotation

27/10 2015

v1.6.2

1.6.2.0

A consumer for axado API.

  Sources   Download

MIT

The Development Requires

by Guilherme Guitte

laravel shipping illuminate brazil axado

27/10 2015

v1.6.1

1.6.1.0

A consumer for axado API.

  Sources   Download

MIT

The Development Requires

by Guilherme Guitte

laravel shipping illuminate brazil axado

16/10 2015

1.6.1

1.6.1.0

A consumer for axado API.

  Sources   Download

MIT

The Development Requires

by Guilherme Guitte

laravel shipping illuminate brazil axado

26/08 2015

v1.6

1.6.0.0

A consumer for axado API.

  Sources   Download

MIT

The Development Requires

by Guilherme Guitte

laravel shipping illuminate brazil axado

11/11 2014

v1.5.4

1.5.4.0

A consumer for axado API.

  Sources   Download

MIT

The Development Requires

by Guilherme Guitte

laravel shipping illuminate brazil axado

27/10 2014

v1.5.3

1.5.3.0

A consumer for axado API.

  Sources   Download

MIT

The Development Requires

by Guilherme Guitte

laravel shipping illuminate brazil axado

13/10 2014

v1.5.2

1.5.2.0

A consumer for axado API.

  Sources   Download

MIT

The Development Requires

by Guilherme Guitte

laravel shipping illuminate brazil axado

23/09 2014

v1.5.1

1.5.1.0

A consumer for axado API.

  Sources   Download

MIT

The Development Requires

by Guilherme Guitte

laravel shipping illuminate brazil axado

23/09 2014

v1.5.0

1.5.0.0

A consumer for axado API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Guilherme Guitte

laravel shipping illuminate brazil axado

23/09 2014

v1.0.0

1.0.0.0

A consumer for axado API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Guilherme Guitte

laravel shipping illuminate brazil axado