Skip to content

waltersilvacruz/laravel-b2bwave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel B2BWave API Client

PHP client wrapping the B2BWave API.

This package was designed to work with Laravel, so this package is written with Laravel in mind.

Installation

Install Laravel B2BWave API Cliente:

$ composer require waltersilvacruz/laravel-b2bwave

The package uses the auto registration feature of Laravel.

Configuration

  1. Add the appropriate values to your .env

    B2BWAVE_APP_CODE=<API App Code>
    B2BWAVE_TOKEN=<API Token>
  2. Publish configuration file

    Config

    A configuration file named b2bwave.php can be published to config/ by running...

    php artisan vendor:publish --tag=b2bwave-config

Usage

Here is an example of getting the customer's information from B2bWave:

$b2bwave = app('B2BWaveClient');
$options = [
    'name' => 'John Doe'
];
$response = $b2bwave->customers()->search($array);
dd($response);

About

A simple wrapper for B2BWave API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages