A CakePHP plugin that provides a Shell to read an app's Configure vars from the command line.
- This is the Cake 3.x version of the plugin, which exists on the
masterbranch and is tracked by the3.*semver. - For the Cake 2.x version of this plugin, please use the repo's
cake-2.xbranch. (semver2.*) - For the Cake 1.3 version, use the
cake-1.3branch. (semver1.*) Note: we don't expect to actively maintain the 1.3 version. It's here because the project started life as a 1.3 Shell.
- CakePHP 3.0.0+
- PHP 5.4.19+
composer require loadsys/config-read:~3.0
$ cd path/to/app/
$ ./bin/cake ConfigRead Key.Name
'foo'$ ./bin/cake ConfigRead Key.Name Second.Key
KEY_NAME='foo'
SECOND_KEY_FIRST='bar'
SECOND_KEY_SECOND='baz'
SECOND_KEY_THIRD='42'Note that this format is automatically used whenever more than one key is returned. For example, if you request a key that contains an array, all values in the array will be returned sequentially. Alternatively, if you pass multiple keys on the command line, they will be returned. The format can also be forced using the -b or --bash command line switch:
$ ./bin/cake ConfigRead -b Key.Name
KEY_NAME='foo'For bugs and feature requests, please use the Issues.
Please feel free to open a new Issue, or fork the repo and submit a PR.
Copyright 2015 Loadsys Web Strategies. All rights reserved.
Licensed under the MIT License. Redistributions of the source code included in this repository must retain the copyright notice found in each file.