2017 © Pedro Peláez
 

library php-bring-api

Bring API wrapper for PHP.

image

markant-norge/php-bring-api

Bring API wrapper for PHP.

  • Tuesday, April 17, 2018
  • by markantnorge
  • Repository
  • 0 Watchers
  • 0 Stars
  • 74 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 30 % Grown

The README.md

PHP Bring API

Use this API with any PHP application ( Magento, Wordpress, Drupal, etc. )., (*1)

Features:, (*2)

  • Forces request format to comply with Bring API
  • Forces strict data types
  • Validation before API request
  • PSR-4 compliant
  • Supports My bring authorization for API's that supports it ( meaning no rate limiting ).

See example folder for usage., (*3)

See Bring Developer Section for info about the API and response array description., (*4)

Install

Install using composer is the best way., (*5)

composer require markant-norge/bring-api@^1.0

Supporting the following APIs:

  • [x] Booking API (EDI)
    • [x] Book shipments. https://api.bring.com/booking/api
    • [x] Get Mybring customers. https://api.bring.com/booking/api/customers
  • [x] Shipping Guide API
    • [x] Get estimated prices for packages.
  • [x] Tracking API
    • [x] Track consignments
  • [x] Easy Return Service API

** API's marked with [x] is implemented**, (*6)

Test (cli)

See example folder for example scripts., (*7)

Testing My bring booking API

Since the booking API requires authentication with My Bring, set some environment variables before running the test script., (*8)

UID / API key and Bring customer number is accessible in the mybring web interface., (*9)

cd example/
export BRING_UID="me@myemail.com" && export BRING_API_KEY="xxxxxx-xxxxx-xxx-xxxx" && export BRING_CUSTOMER="BRING__CUSTOMER_NUMBER" && php booking-api.php

Contribute

Contributions are welcome., (*10)

License

MIT, (*11)

The Versions

17/04 2018

dev-master

9999999-dev

Bring API wrapper for PHP.

  Sources   Download

The Requires

 

The Development Requires

17/04 2018

1.0.8

1.0.8.0

Bring API wrapper for PHP.

  Sources   Download

The Requires

 

The Development Requires

20/02 2018

1.0.7

1.0.7.0

Bring API wrapper for PHP.

  Sources   Download

The Requires

 

The Development Requires

20/02 2018

1.0.6

1.0.6.0

Bring API wrapper for PHP.

  Sources   Download

The Requires

 

The Development Requires

20/02 2018

1.0.5

1.0.5.0

Bring API wrapper for PHP.

  Sources   Download

The Requires

 

The Development Requires