PHPackages                             umar-jimoh/laravel-secretsync - 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. [Caching](/categories/caching)
4. /
5. umar-jimoh/laravel-secretsync

ActiveLibrary[Caching](/categories/caching)

umar-jimoh/laravel-secretsync
=============================

Sync secrets from secret managers into your Laravel app with ease.

v1.2.0(5mo ago)91573[2 issues](https://github.com/Umar-Jimoh/laravel-secretsync/issues)MITPHPPHP ^8.2

Since May 25Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/Umar-Jimoh/laravel-secretsync)[ Packagist](https://packagist.org/packages/umar-jimoh/laravel-secretsync)[ RSS](/packages/umar-jimoh-laravel-secretsync/feed)WikiDiscussions dev Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (8)Used By (0)

 [![SecretSync Logo](./docs/secretsync.png)](./docs/secretsync.png)

 [![Total Downloads](https://camo.githubusercontent.com/0ef3a1184a674d6f9ecf5ee614a4dc51af74b5f534201029f94de71a150b1fbe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f756d61722d6a696d6f682f6c61726176656c2d73656372657473796e63)](https://packagist.org/packages/umar-jimoh/laravel-secretsync) [![Latest Version](https://camo.githubusercontent.com/821da1954cfa4b432e985d142b64c98937ff422d45d95fa201a3d6917e62fa30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f756d61722d6a696d6f682f6c61726176656c2d73656372657473796e63)](https://packagist.org/packages/umar-jimoh/laravel-secretsync) [![Contribution](https://camo.githubusercontent.com/382079383bf5ec051cfa878df7b3d9a70a5f5052e573c67033d4d3f7e376a6d4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e747269627574696f6e732d77656c636f6d652d627269676874677265656e2e737667)](https://packagist.org/packages/umar-jimoh/laravel-secretsync) [![License](https://camo.githubusercontent.com/0a617d2dd8e1881f8ded96a08481049118a2e0750595f5cea67e46aae260788c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f756d61722d6a696d6f682f6c61726176656c2d73656372657473796e63)](https://packagist.org/packages/umar-jimoh/laravel-secretsync)

Introduction
------------

[](#introduction)

**Laravel SecretSync** allows you to seamlessly sync secrets from external secret managers directly into your Laravel application.

Supported providers:

- **Infisical**
- **Doppler** (new in **v1.2.0**)

Once installed, syncing secrets is as simple as:

```
php artisan secretsync
```

📦 Installation
--------------

[](#-installation)

Install via Composer:

```
composer require umar-jimoh/laravel-secretsync
```

Publish the configuration file:

```
php artisan vendor:publish --provider="UmarJimoh\SecretSync\SecretSyncServiceProvider" --tag=config
```

🧪 Usage
-------

[](#-usage)

Before syncing, make sure your chosen secret manager is properly set up and your `.env` file contains the required credentials.

**Infisical Configuration**

```
SECRETSYNC_PROVIDER="infisical"
INFISICAL_API_ENDPOINT=
INFISICAL_TOKEN=
INFISICAL_ENV=
INFISICAL_WORK_ID="your-infisical-project-id"
```

**Doppler Configuration (new in v1.2.0)**

```
SECRETSYNC_PROVIDER="doppler"
DOPPLER_TOKEN=
DOPPLER_API_ENDPOINT=
DOPPLER_PROJECT=
DOPPLER_CONFIG=
```

> **Important:** Your `APP_KEY` must come from your secret manager.
> Do **not** define `APP_KEY` in your `.env` file.

**Syncing Secrets**

```
php artisan secretsync
```

This command fetches and applies secrets from your configured provider.

🔒 Cache (Optional)
------------------

[](#-cache-optional)

You can enable caching so secrets aren’t fetched on every sync:

```
SECRETSYNC_CACHE=true
SECRETSYNC_CACHE_TTL=300   # seconds
SECRETSYNC_CACHE_DRIVER=   # optional, defaults to Laravel's cache driver
```

Secrets stored in the cache are securely encrypted.

These settings can also be configured in `config/secretsync.php`.

🐞 Debugging
-----------

[](#-debugging)

For detailed error output:

```
php artisan secretsync --debug
```

Or enable debugging in `.env`:

```
SECRETSYNC_DEBUG=true
```

⚠️ Production Note
------------------

[](#️-production-note)

After running:

```
php artisan optimize
```

or clearing config:

```
php artisan config:clear
```

You must run:

```
php artisan secretsync
```

to ensure all secrets are properly loaded.

🤝 Contributing
--------------

[](#-contributing)

Please see the [CONTRIBUTING](https://github.com/Umar-Jimoh/laravel-secretsync/blob/HEAD/CONTRIBUTING.md) guide for details.

📧 Contact
---------

[](#-contact)

If you have questions or suggestions, feel free to reach out:

- Email:
- X\\Twitter: [@umarjimoh\_dev](https://x.com/umarjimoh_dev)

🔗 License
---------

[](#-license)

This package is open-source and licensed under the **[MIT License](https://github.com/Umar-Jimoh/laravel-secretsync/blob/HEAD/LICENSE)**.

###  Health Score

41

—

FairBetter than 88% of packages

Maintenance72

Regular maintenance activity

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.7% 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 ~38 days

Recently: every ~47 days

Total

6

Last Release

159d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2def41e8ae2515bac5d2bd7d4d4f460838e3f04ec73ed034286011353be40718?d=identicon)[umar-jimoh](/maintainers/umar-jimoh)

---

Top Contributors

[![Umar-Jimoh](https://avatars.githubusercontent.com/u/107038803?v=4)](https://github.com/Umar-Jimoh "Umar-Jimoh (43 commits)")[![thedejijoseph](https://avatars.githubusercontent.com/u/26318487?v=4)](https://github.com/thedejijoseph "thedejijoseph (1 commits)")

---

Tags

phplaravelconfigurationencryptioncacheenvproductiondeveloper-toolssecret-managersecretsync

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/umar-jimoh-laravel-secretsync/health.svg)

```
[![Health](https://phpackages.com/badges/umar-jimoh-laravel-secretsync/health.svg)](https://phpackages.com/packages/umar-jimoh-laravel-secretsync)
```

###  Alternatives

[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

975163.6k2](/packages/awssat-laravel-visits)[swayok/alternative-laravel-cache

Replacements for Laravel's redis and file cache stores that properly implement tagging idea. Powered by cache pool implementations provided by http://www.php-cache.com/

202541.1k6](/packages/swayok-alternative-laravel-cache)[antennaio/laravel-clyde

Image uploads and manipulation for Laravel, a wrapper around Glide

292.6k](/packages/antennaio-laravel-clyde)

PHPackages © 2026

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