PHPackages                             avexsoft/donkey - 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. avexsoft/donkey

ActiveLaravel-library

avexsoft/donkey
===============

The smart-ass Laravel package to manage `config()` in production

1.0.7(4mo ago)3884—5.6%[1 issues](https://github.com/avexsoft/donkey/issues)1MITPHPCI passing

Since Dec 13Pushed 4mo agoCompare

[ Source](https://github.com/avexsoft/donkey)[ Packagist](https://packagist.org/packages/avexsoft/donkey)[ Docs](https://github.com/avexsoft/donkey)[ RSS](/packages/avexsoft-donkey/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelogDependencies (5)Versions (9)Used By (1)

Donkey
======

[](#donkey)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f4fc94a22c5964a87d600a0c5065b24730ee2de8358b7163cc9528987aff6b99/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61766578736f66742f646f6e6b65792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/avexsoft/donkey)[![Total Downloads](https://camo.githubusercontent.com/16668eb797eb8c97b0161c2195846d7bcbafe66e162eb2e0d30a4938c1b9ffd8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61766578736f66742f646f6e6b65792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/avexsoft/donkey)[![Build Status](https://camo.githubusercontent.com/0845737c0acb7e0707c27f276817e35b160716d11a06ce7f9c644771728e616c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f61766578736f66742f646f6e6b65792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/avexsoft/donkey)[![StyleCI](https://camo.githubusercontent.com/cb13a877afd1dbe223c631789c3f922d3ace958fdb334a9cce9b26afefbc2ebd/68747470733a2f2f7374796c6563692e696f2f7265706f732f31323334353637382f736869656c64)](https://styleci.io/repos/12345678)

Donkey is a Laravel package to modify your Laravel `config()` in code/any environment without giving access to the `.env` file.

Any key of the config can be modified like this

```
Donkey::set('app.debug', true); // config('app.debug') will return true until changed again
```

What problems does this solve?
------------------------------

[](#what-problems-does-this-solve)

1. If you had to change a value in `config()` that is not exposed in `.env`, how do you do it? Does it have to go through the entire CI/CD pipeline before reaching production?
2. If you had to enable Laravel's debug mode temporarily in production, how would you do it? Modify `.env`? Who will be editing it? Will they accidentally edit something else? And does that person have SSH access? Even if you trust them, do you really want the other API keys to show up on their screens?
3. Perhaps our biggest pain point was coming up with the UI to expose configurable parts of our projects to the users, there just wasn't an elegant way to do it. Our companion Filament package lets you create a configuration page blazingly fast and in your own namespace

    ```
    Donkey::set('project.advanced_mode', true); // persists project.advanced_mode into the project
    config('project.advanced_mode'); // returns true

    // You can even give users their own configuration space
    Donkey::set(auth()->user()->id.'-user.advanced_mode', true);
    ```

How does it work?
-----------------

[](#how-does-it-work)

1. `Donkey::set('app.debug', true)` stores the key-value pair into the database
2. You can blacklist keys using regular expression, e.g. `app.*`, `database.*`
3. Next, a whilelist will let through keys like `app.debug`, this way, you prevent really sensitive keys like `app.key` from being overwritten
4. The package then inject these pairs from the database into the project after going through the black and whitelist
5. This approach plays nicely with the Laravel `config:cache` and requires no changes in your project

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

[](#installation)

Via Composer

```
$ composer require avexsoft/donkey
```

Usage
-----

[](#usage)

Change log
----------

[](#change-log)

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

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Author Name](https://github.com/avexsoft)
- [All Contributors](../../contributors)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance71

Regular maintenance activity

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.9% 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 ~4 days

Total

9

Last Release

125d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/53545524?v=4)[Avexsoft](/maintainers/avexsoft)[@avexsoft](https://github.com/avexsoft)

---

Top Contributors

[![Lightz2002](https://avatars.githubusercontent.com/u/68954690?v=4)](https://github.com/Lightz2002 "Lightz2002 (22 commits)")[![mxts](https://avatars.githubusercontent.com/u/53546313?v=4)](https://github.com/mxts "mxts (16 commits)")

---

Tags

laravellaraveldonkey

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/avexsoft-donkey/health.svg)

```
[![Health](https://phpackages.com/badges/avexsoft-donkey/health.svg)](https://phpackages.com/packages/avexsoft-donkey)
```

###  Alternatives

[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[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)[giacomomasseron/laravel-models-generator

Generate Laravel models from an existing database

484.2k](/packages/giacomomasseron-laravel-models-generator)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[basillangevin/laravel-data-json-schemas

Transforms Spatie Data objects into JSON Schemas with built-in validation

1312.2k1](/packages/basillangevin-laravel-data-json-schemas)

PHPackages © 2026

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