PHPackages                             bella-baxter/laravel - 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. [Security](/categories/security)
4. /
5. bella-baxter/laravel

ActiveLibrary[Security](/categories/security)

bella-baxter/laravel
====================

Laravel integration for the Bella Baxter secret management platform

v0.1.1-beta.91(4w ago)00MITPHPPHP ^8.1CI failing

Since Mar 26Pushed 4w agoCompare

[ Source](https://github.com/Cosmic-Chimps/bella-baxter-php-laravel)[ Packagist](https://packagist.org/packages/bella-baxter/laravel)[ Docs](https://bella-baxter.io)[ RSS](/packages/bella-baxter-laravel/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (10)Versions (67)Used By (0)

bella-baxter/laravel
====================

[](#bella-baxterlaravel)

Laravel integration for the [Bella Baxter](https://bella-baxter.io) secret management platform.

[![Packagist](https://camo.githubusercontent.com/f3ab32787e2b27f7b5f42847b83621d778b30cbc1219689839ad3a8d339e4373/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62656c6c612d6261787465722f6c61726176656c)](https://packagist.org/packages/bella-baxter/laravel)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

Automatically loads your Bella Baxter secrets into Laravel's environment at boot — secrets are available everywhere via `env()`, `config()`, and `$_ENV`.

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

[](#installation)

```
composer require bella-baxter/laravel
```

The `BellaServiceProvider` is auto-discovered by Laravel (no manual registration needed).

Configuration
-------------

[](#configuration)

Publish the config file:

```
php artisan vendor:publish --tag=bella-config
```

Set environment variables (or edit `config/bella.php`):

```
BELLA_BAXTER_URL=https://api.bella-baxter.io
BELLA_BAXTER_API_KEY=bax-your-api-key
BELLA_BAXTER_AUTO_LOAD=true
```

Usage
-----

[](#usage)

### Auto-load (default)

[](#auto-load-default)

With `auto_load: true` (the default), all secrets are injected into `$_ENV` and `putenv()` at boot:

```
// In any controller, service, or config file:
$dbUrl = env('DATABASE_URL');         // from Bella Baxter
$apiKey = env('STRIPE_API_KEY');      // from Bella Baxter
```

### Facade

[](#facade)

```
use BellaBaxter\Laravel\Facades\Bella;

$secrets = Bella::getAllSecrets();   // array
$value   = Bella::getSecret('DATABASE_URL');
```

### Dependency Injection

[](#dependency-injection)

```
use BellaBaxter\BaxterClient;

class MyService
{
    public function __construct(private BaxterClient $bella) {}

    public function doSomething(): void
    {
        $secrets = $this->bella->getAllSecrets();
    }
}
```

Configuration Reference
-----------------------

[](#configuration-reference)

KeyEnv varDefaultDescription`url``BELLA_BAXTER_URL``https://api.bella-baxter.io`Base URL of the Baxter API`api_key``BELLA_BAXTER_API_KEY``''`API key from `bella apikeys create``auto_load``BELLA_BAXTER_AUTO_LOAD``true`Load secrets into `$_ENV` at bootManual registration (Laravel 10 or explicit)
--------------------------------------------

[](#manual-registration-laravel-10-or-explicit)

If auto-discovery is disabled, add to `config/app.php`:

```
'providers' => [
    // ...
    BellaBaxter\Laravel\BellaServiceProvider::class,
],
'aliases' => [
    // ...
    'Bella' => BellaBaxter\Laravel\Facades\Bella::class,
],
```

Or in `bootstrap/providers.php` (Laravel 11+):

```
return [
    // ...
    BellaBaxter\Laravel\BellaServiceProvider::class,
];
```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance94

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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

Total

66

Last Release

29d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d4a4de332e94aba03e66296f4bfa03101afa5d666c0dcbfa3c9da23c364dc00?d=identicon)[jjchiw](/maintainers/jjchiw)

---

Tags

laravelvaultsecretssecret-managementbella-baxter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bella-baxter-laravel/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.1k91.3M279](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k199.2M1.2k](/packages/laravel-sail)[illuminate/database

The Illuminate Database package.

2.8k54.1M11.1k](/packages/illuminate-database)[laravel/ai

The official AI SDK for Laravel.

9782.1M161](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k239.9k75](/packages/moonshine-moonshine)

PHPackages © 2026

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