PHPackages                             nsmithuk/zf-config-dump - 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. [CLI &amp; Console](/categories/cli)
4. /
5. nsmithuk/zf-config-dump

ActiveLibrary[CLI &amp; Console](/categories/cli)

nsmithuk/zf-config-dump
=======================

Dumps an application's config to the terminal

1.0.0(9y ago)0135MITPHPPHP &gt;=5.4

Since Apr 12Pushed 9y agoCompare

[ Source](https://github.com/NSmithUK/zf-config-dump)[ Packagist](https://packagist.org/packages/nsmithuk/zf-config-dump)[ RSS](/packages/nsmithuk-zf-config-dump/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

zf-config-dump
==============

[](#zf-config-dump)

A Zend Framework 2 module that provides a simple method for dumping an application's current configuration array to the commend line.

This is useful when some of the application’s configuration is set via environment variables, as is common when using container services.

Installing
----------

[](#installing)

zf-config-dump can be installed with [Composer](https://getcomposer.org/). Run this command:

```
composer require nsmithuk/zf-config-dump
```

Then you need to add `ZFConfigDump` to your *config/application.config.php* file under the `modules` key.

Usage and example output
------------------------

[](#usage-and-example-output)

Once installed, call the following to get the whole config output:

```
php public/index.php dump-config
```

[![Example output](examples/full.png)](examples/full.png)

If you only want to return the config for a specific key, you can add a filter. For example, to just return the config for your database, you can call:

```
php public/index.php dump-config database
```

[![Example output](examples/database.png)](examples/database.png)

You can also use dot notation to access deeper keys within the config. For example, to access the value set for just the database adapter:

```
php public/index.php dump-config database.adapter
```

[![Example output](examples/adapter.png)](examples/adapter.png)

###  Health Score

26

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3630d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/66f4b8fc2718808076569971dddd8a4ffac98533b684f05d1556126ee2bf963f?d=identicon)[NSmithUK](/maintainers/NSmithUK)

---

Top Contributors

[![nsmithuk](https://avatars.githubusercontent.com/u/480908?v=4)](https://github.com/nsmithuk "nsmithuk (5 commits)")

---

Tags

cliconfigmodulezf2

### Embed Badge

![Health badge](/badges/nsmithuk-zf-config-dump/health.svg)

```
[![Health](https://phpackages.com/badges/nsmithuk-zf-config-dump/health.svg)](https://phpackages.com/packages/nsmithuk-zf-config-dump)
```

###  Alternatives

[buggregator/trap

A simple and powerful tool for debugging PHP applications.

2541.5M26](/packages/buggregator-trap)[mahocommerce/maho

Free and open source ecommerce platform, created in 2024 on the M1 platform, PHP 8.3+

1271.5k12](/packages/mahocommerce-maho)[spatie/mixed-content-scanner-cli

A tool to scan sites for mixed content

912.5k](/packages/spatie-mixed-content-scanner-cli)[zenddevops/client

ZF2 CLI tool to access Zend Server Web API

225.1k](/packages/zenddevops-client)[soflomo/cache

Command line utility for cache management in Zend Framework 2

1410.9k](/packages/soflomo-cache)

PHPackages © 2026

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