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. [Utility &amp; Helpers](/categories/utility)
4. /
5. avexsoft/donkey

ActiveLaravel-library[Utility &amp; Helpers](/categories/utility)

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

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

1.0.10(2d ago)31.2k↓54.6%[1 issues](https://github.com/avexsoft/donkey/issues)1MITPHPCI passing

Since Dec 13Pushed 2d 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 yesterday

READMEChangelogDependencies (15)Versions (12)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/15db0932144eb41f43782cacac24be89bf2a80eda5adb9a163abd59e9201d95f/68747470733a2f2f7472617669732d63692e636f6d2f61766578736f66742f646f6e6b65792e7376673f6272616e63683d312e78)](https://travis-ci.com/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

44

—

FairBetter than 90% of packages

Maintenance93

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52.4% 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 ~18 days

Recently: every ~42 days

Total

12

Last Release

2d 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 (20 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[october/rain

October Rain Library

1601.7M83](/packages/october-rain)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)

PHPackages © 2026

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