PHPackages                             tutorauk/laravel-braze-api - 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. tutorauk/laravel-braze-api

ActiveLibrary

tutorauk/laravel-braze-api
==========================

A Laravel client for the Braze REST API

v0.2(2y ago)0834↓25%1[3 PRs](https://github.com/TutoraUK/laravel-braze-api/pulls)MITPHPPHP ^8.1

Since Jul 26Pushed 2y ago2 watchersCompare

[ Source](https://github.com/TutoraUK/laravel-braze-api)[ Packagist](https://packagist.org/packages/tutorauk/laravel-braze-api)[ Docs](https://github.com/tutorauk/laravel-braze-api)[ RSS](/packages/tutorauk-laravel-braze-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (13)Versions (5)Used By (0)

[![Laravel Braze](./art/social-image.png)](./art/social-image.png)

[![Latest Version on Packagist](https://camo.githubusercontent.com/02c6aa024fe25c9b4957b76eeeb9e7c2df97b37fc7c5b0ef9cfec60ce857d12d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7475746f7261756b2f6c61726176656c2d6272617a652d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tutorauk/laravel-braze-api)[![GitHub Tests Action Status](https://camo.githubusercontent.com/aa5d06c6a1aa7603629080108920c2eca39177b13b1ea9266a0f9e28ccea63ce/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7475746f7261756b2f6c61726176656c2d6272617a652d6170692f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473)](https://github.com/tutorauk/laravel-braze-api/actions/workflows/run-tests.yml)[![GitHub Tests Action Status](https://camo.githubusercontent.com/0e87cf319cfac6fc2203d67d72eb30628ef85dd56c0aa855ab5abfe400f74d0b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7475746f7261756b2f6c61726176656c2d6272617a652d6170692f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65)](https://github.com/tutorauk/laravel-braze-api/actions/workflows/fix-php-code-style-issues.yml)[![GitHub Tests Action Status](https://camo.githubusercontent.com/ccce2451847ef9cb9c08d3dbddc22b3a940adc81497aa1593b5e21017bf1a00f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7475746f7261756b2f6c61726176656c2d6272617a652d6170692f7068707374616e2e796d6c3f6272616e63683d6d61696e266c6162656c3d737461746963253230616e616c79736973)](https://github.com/tutorauk/laravel-braze-api/actions/workflows/php-cs-fixer.yml)[![Total Downloads](https://camo.githubusercontent.com/058f65416aa41bd4c6d83d44f3368c623feab67428fa7e4d2608c751b87e7468/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7475746f7261756b2f6c61726176656c2d6272617a652d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tutorauk/laravel-braze-api)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Laravel wrapper around the [immobiliare/braze-php-sdk](https://github.com/immobiliare/braze-php-sdk) package.

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

[](#installation)

You can install the package via composer:

```
composer require tutorauk/laravel-braze-api
```

Then you need to your Braze api key and the correct rest endpoint to your `.env` file:

```
BRAZE_API_KEY='apiKey'
BRAZE_REST_ENDPOINT=https://rest.fra-02.braze.eu
```

### Http Client Adapters

[](#http-client-adapters)

This package has support for the [Laravel HTTP Client](https://laravel.com/docs/http-client) or [Guzzle](https://docs.guzzlephp.org/en/stable/). The Laravel HTTP Client is the default and preferred client. Utilising the Laravel client, enables you to take advantage of Laravels [testing helpers](https://laravel.com/docs/http-client#testing) within your tests.

If you would prefer to use Guzzle, you can specify the adapter in your `.env` file:

```
BRAZE_CLIENT_ADAPTER=guzzle
```

Usage
-----

[](#usage)

This package binds a singleton to the Laravel service container, so you can easily resolve the Braze client directly from the container, or via dependency injection. Alternatively, the package also exposes both a Facade and a helper function should you prefer a shorter more expressive option.

```
// Resolve service directly from container and access the users endpoint
app(Braze::class)->users();

// Resolve via Facade and access the users endpoint
Braze::users();

// Resolve service via helper and access the users endpoint
braze()->users();
```

Testing, Static Analysis and Formatting
---------------------------------------

[](#testing-static-analysis-and-formatting)

```
composer test
composer analyse
composer format
```

Thanks
------

[](#thanks)

Big shout out to [Immobiliare Labs](https://github.com/immobiliare) for their [Braze PHP SDK](https://github.com/immobiliare/braze-php-sdk) package. They did all the hard work 👏!

Changelog
---------

[](#changelog)

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

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Rick West](https://github.com/rickwest)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

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 ~0 days

Total

2

Last Release

1021d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a8d59a529aae658b083a9f6977dc82105d12463958e5a0ecdd008c73d3ac017?d=identicon)[rickwest](/maintainers/rickwest)

---

Top Contributors

[![rickwest](https://avatars.githubusercontent.com/u/24735291?v=4)](https://github.com/rickwest "rickwest (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelbrazeTutoraUKlaravel-braze-api

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/tutorauk-laravel-braze-api/health.svg)

```
[![Health](https://phpackages.com/badges/tutorauk-laravel-braze-api/health.svg)](https://phpackages.com/packages/tutorauk-laravel-braze-api)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[sunchayn/nimbus

A Laravel package providing an in-browser API client with automatic schema generation, live validation, and built-in authentication with a touch of Laravel-tailored magic for effortless API testing.

29428.0k](/packages/sunchayn-nimbus)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[spatie/laravel-mailcoach-sdk

An SDK to easily work with the Mailcoach API in Laravel apps

41290.2k1](/packages/spatie-laravel-mailcoach-sdk)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)

PHPackages © 2026

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