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-11-11 15:04:48 |
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 |
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
There is one public method available, send(string $uri, array $input, $is_client_uri = false), which takes three parameters:
$uri - (required) BAM Lead Tracker URI
$input - (required)
$is_client_uri - true for a Client URI, false for a Store URI
with(new BAMLT)->send(BAMLT_URI, $input);
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())