Custom config path improvements
Although Phinx purportedly supports moving the config file out of the project root directory, it does not seem to be designed in a way that actually accommodates such usage, due to a number of pain points.
Some commands require the config file and some do not, which means some commands support the --configuration option and some do not. This is fine when the app automatically detects the config as and when required, but when it needs to be specified, is problematic because if it is specified when it is not required, a fatal error is thrown. Consider a wrapper script that passes the --configuration option: it does not know whether to pass the configuration option or not unless it does its own parsing of the command line and cross-references it with its own database of commands that require it. It should be considered common to write such a wrapper because we don't want to manually specify the path on every invocation.
Here are my suggestions:
1a. Either support --configuration on all commands, even ones that do not require it (silently ignoring when not needed), or:
1b. Add an environment variable that should point to the configuration path and be read as needed.
2. The configuration path should be valid as just a path rather than an absolute file location. When it is just a path, the same config file lookup rules should be applied as they are to the default location. e.g. -c db will find db/phinx.php. PHPUnit works this way.