anakadote / bamlt by anakadote

Send a lead to the default BAM Lead Tracker web service.
1,333
0
2
Package Data
Maintainer Username: anakadote
Maintainer Contact: taylor@endif.io (Taylor Collins)
Package Create Date: 2015-11-19
Package Last Update: 2021-07-08
Home Page:
Language: PHP
License: Unknown
Last Refreshed: 2024-04-30 03:01:19
Package Statistics
Total Downloads: 1,333
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

BAM Lead Tracker Service Class

Send a lead to the default BAM Lead Tracker web service.

Begin by installing this package through Composer. Edit your project's composer.json file to require anakadote/bamlt.

"require": {
	"anakadote/bamlt": "dev-master"
}

Next, update Composer from the Terminal:

composer update

Next, add the service provider. Open config/app.php and add a new item to the providers array.

Anakadote\BAMLT\BAMLTServiceProvider::class

Usage

There is one public method available, send(string $uri, array $input, $is_client_uri = false), which takes three parameters:

  1. $uri - (required) BAM Lead Tracker URI

  2. $input - (required)

  3. $is_client_uri - true for a Client URI, false for a Store URI

    with(new BAMLT)->send(BAMLT_URI, $input);

Laravel

To use with Laravel, add the service provider. Open config/app.php and add a new item to the providers array.

Anakadote\BAMLT\BAMLTProvider::class

This package is also accessible via a Laravel Facade so to use simply call its methods on the Facade "BAMLT":

BAMLT::send(env('BAMLT_URI'), $request->all())