2017-25 © Pedro Pelåez
 

library zf-config-dump

Dumps an application's config to the terminal

image

nsmithuk/zf-config-dump

Dumps an application's config to the terminal

  • Tuesday, April 12, 2016
  • by NSmithUK
  • Repository
  • 0 Watchers
  • 0 Stars
  • 125 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

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., (*1)

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

Installing

zf-config-dump can be installed with Composer. Run this command:, (*3)

composer require nsmithuk/zf-config-dump

Then you need to add ZFConfigDump to your config/application.config.php file under the modules key., (*4)

Usage and example output

Once installed, call the following to get the whole config output:, (*5)

php public/index.php dump-config

Example output, (*6)

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:, (*7)

php public/index.php dump-config database

Example output, (*8)

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:, (*9)

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

Example output, (*10)

The Versions

12/04 2016

dev-master

9999999-dev

Dumps an application's config to the terminal

  Sources   Download

MIT

The Requires

 

by Neil Smith

config zf2 cli module

12/04 2016

1.0.0

1.0.0.0

Dumps an application's config to the terminal

  Sources   Download

MIT

The Requires

 

by Neil Smith

config zf2 cli module