PHPackages                             rpwebdevelopment/laravel-blueshift - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. rpwebdevelopment/laravel-blueshift

ActiveLibrary[API Development](/categories/api)

rpwebdevelopment/laravel-blueshift
==================================

Blueshift integration package for laravel

v0.1.3(4y ago)081[2 PRs](https://github.com/rpwebdevelopment/laravel-blueshift/pulls)MITPHPPHP ^7.4

Since Mar 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/rpwebdevelopment/laravel-blueshift)[ Packagist](https://packagist.org/packages/rpwebdevelopment/laravel-blueshift)[ Docs](https://github.com/rpwebdevelopment/laravel-blueshift)[ GitHub Sponsors](https://github.com/rpwebdevelopment)[ RSS](/packages/rpwebdevelopment-laravel-blueshift/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (9)Versions (17)Used By (0)

Blueshift integration package for laravel
=========================================

[](#blueshift-integration-package-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/846d388b4e021d56fb2c939e3b1ab58a4edd50413af33a5b1f643664db3ecb04/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7270776562646576656c6f706d656e742f6c61726176656c2d626c756573686966742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rpwebdevelopment/laravel-blueshift)[![GitHub Tests Action Status](https://camo.githubusercontent.com/eac447f494d93736a269777898b4ceabd369757df311204ec50cf63ed0e76aea/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7270776562646576656c6f706d656e742f6c61726176656c2d626c756573686966742f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/rpwebdevelopment/laravel-blueshift/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/503e6abbbe930c55ba57bedc2f937be23b08010ca357df62fd5ef589f348e4b2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7270776562646576656c6f706d656e742f6c61726176656c2d626c756573686966742f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/rpwebdevelopment/laravel-blueshift/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/6613466ce508a27b39e4ae17bb1e7122c7df7ad02bf601f85e286d585b1b7f5f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7270776562646576656c6f706d656e742f6c61726176656c2d626c756573686966742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rpwebdevelopment/laravel-blueshift)

This is a Laravel specific package designed to make communication with the [Blueshift API](https://developer.blueshift.com/reference/welcome) quick and easy.

Requirements
------------

[](#requirements)

Currently this package only functions on Laravel 8.\*

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require rpwebdevelopment/laravel-blueshift
```

Usage
-----

[](#usage)

### Configuration

[](#configuration)

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 Blueshift
- `BLUESHIFT_BASE_URL` - Defaults to '', for non EU this should be set to ''

### Class Structure

[](#class-structure)

laravel-blueshift provides specific classes for handling different API endpoints, the available classes and their methods are as follows:

- BlueshiftCustomer
    - search(string $email);
    - get(string $uuid);
    - createJson(string $customer);
    - createArray(array $customer);
    - bulkCreateJson(string $customers);
    - bulkCreateArray(array $customers);
    - manageCustomerSubscriptions(?string $email = null, ?string $uuid = null, bool $unsubscribedEmail = false, bool $unsubscribedPush = false, bool $unsubscribedSms = false);
    - unsubscribeCustomerFromEmail(?string $email = null, ?string $uuid = null);
    - unsubscribeCustomerFromSms(?string $email = null, ?string $uuid = null);
    - unsubscribeCustomerFromPush(?string $email = null, ?string $uuid = null);
    - unsubscribeCustomerFromAll(?string $email = null, ?string $uuid = null);
    - manageEmailListSubscriptions(array $emailList, ?bool $unsubscribedEmail = null, ?bool $unsubscribedPush = null, ?bool $unsubscribedSms = null);
    - startTracking(?string $email, ?string $uuid);
    - stopTracking(?string $email, ?string $uuid);
    - delete(?string $email, ?string $uuid, bool $allMatching)
- BlueshiftCatalog
    - createCatalog(string $name);
    - getList();
    - addItems(string $uuid, array $items);
    - getCatalog(string $uuid);
- BlueshiftUserList
    - createList(string $name, string $description, string $source = 'email');
    - addUserToList(int $listId, string $identifierKey, string $identifierValue);
    - removeUserFromList(int $listId, string $identifierKey, string $identifierValue);
- BlueshiftEvent
    - sendEvent(array $event);

From your laravel application these methods can be called as follows:

```
try {
    $customer = app(BlueshiftCustomer::class)->search('email_address@example.org');
} catch (\Exception $e) {
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Rich Porter](https://github.com/rpwebdevelopment)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

13

Last Release

1487d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f90bae5abe02b9035a5dec46c9e0d4d45e957eacaf740cfe79ed239e8fbeb808?d=identicon)[rpwebdevelopment](/maintainers/rpwebdevelopment)

---

Top Contributors

[![rpwebdevelopment](https://avatars.githubusercontent.com/u/15613749?v=4)](https://github.com/rpwebdevelopment "rpwebdevelopment (11 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (8 commits)")[![BinaryKitten](https://avatars.githubusercontent.com/u/67553?v=4)](https://github.com/BinaryKitten "BinaryKitten (3 commits)")

---

Tags

laravelrpwebdevelopmentlaravel-blueshift

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/rpwebdevelopment-laravel-blueshift/health.svg)

```
[![Health](https://phpackages.com/badges/rpwebdevelopment-laravel-blueshift/health.svg)](https://phpackages.com/packages/rpwebdevelopment-laravel-blueshift)
```

###  Alternatives

[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)[combindma/laravel-facebook-pixel

Meta pixel integration for Laravel

4956.9k](/packages/combindma-laravel-facebook-pixel)[stechstudio/laravel-hubspot

A Laravel SDK for the HubSpot CRM Api

2971.0k](/packages/stechstudio-laravel-hubspot)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
