Blueshift integration package for laravel
rpwebdevelopment/laravel-blueshift is a Laravel package for blueshift integration package for laravel.
It currently has 0 GitHub stars and 10 downloads on Packagist (latest version v0.1.3).
Install it with composer require rpwebdevelopment/laravel-blueshift.
Discover more Laravel packages by rpwebdevelopment
or browse all Laravel packages to compare alternatives.
Last updated
This is a Laravel specific package designed to make communication with the Blueshift API quick and easy.
Currently this package only functions on Laravel 8.*
You can install the package via composer:
composer require rpwebdevelopment/laravel-blueshift
Before the library can function, it expects the blueshift configuration to be provided This package provides a base version of the configuration which you can install by running
php artisan vendor:publish --tag=blueshift-config
The Base configuration pulls values from the environment (env) to populate the configuration.
BLUESHIFT_API_KEY - This should be the "Users Api Key" provided by BlueshiftBLUESHIFT_BASE_URL - Defaults to 'https://api.eu.getblueshift.com', for non EU this should be set to 'https://api.getblueshift.com'laravel-blueshift provides specific classes for handling different API endpoints, the available classes and their methods are as follows:
From your laravel application these methods can be called as follows:
try {
$customer = app(BlueshiftCustomer::class)->search('[email protected]');
} catch (\Exception $e) {
}
composer test
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.