PHPackages                             ohseesoftware/laravel-get-config - 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. ohseesoftware/laravel-get-config

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ohseesoftware/laravel-get-config
================================

Returns the config value for the given key.

v1.0.1(4y ago)0151MITPHPPHP ^8.0

Since Mar 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ohseesoftware/laravel-get-config)[ Packagist](https://packagist.org/packages/ohseesoftware/laravel-get-config)[ Docs](https://github.com/ohseesoftware/laravel-get-config)[ RSS](/packages/ohseesoftware-laravel-get-config/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (7)Versions (4)Used By (1)

Laravel Get Config
==================

[](#laravel-get-config)

A simple artisan command to return the value for a given config key. Supports nested retrieval and object export.

Use case
--------

[](#use-case)

You're probably thinking, "Why do I need this?". To be fair, you probably don't. However, there are a few cases where retrieving config values via a command can make life easier:

- Running Laravel in a serverless environment
- Running Laravel in a PaaS (Platform as a Service, ie: Heroku, etc)

In a typical self-hosted Laravel application, you can SSH into your server and run `php artisan tinker`, and then `config($key)`.

This is not possible in serverless environment (Vapor), as there's no machine to SSH into. In a PaaS, it is usually possible, although can be a bit inconvenient.

Usage
-----

[](#usage)

If you have access to running commands for your Laravel application, simply run:

```
php artisan config:get KEY
```

Where KEY can be a dot notation config key value: `database` or `database.connections.mysql`, etc.

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

### Security

[](#security)

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

Credits
-------

[](#credits)

- [Owen Conti](https://github.com/ohseesoftware)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

1561d ago

### Community

Maintainers

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

---

Top Contributors

[![owenconti](https://avatars.githubusercontent.com/u/791222?v=4)](https://github.com/owenconti "owenconti (2 commits)")

---

Tags

laravelconfigohseesoftware

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/ohseesoftware-laravel-get-config/health.svg)

```
[![Health](https://phpackages.com/badges/ohseesoftware-laravel-get-config/health.svg)](https://phpackages.com/packages/ohseesoftware-laravel-get-config)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.9k1](/packages/mike-bronner-laravel-model-caching)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M201](/packages/laravel-ai)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)

PHPackages © 2026

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