Are environments mandatory?
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 4.5k
- Forks
- 884
- PR merge metrics
- No merged PRs in 30d
Description
I went through the documentation and it seems that the notion of "environments" is mandatory. In all of our projects we moved away from such paradigm (as did Symfony and Zend/Laminas a long time ago) and use only a non versioned "local" configuration file(s). I was able to fiddle with Phinx so that it's always using "production" but then gets the configuration from a local non versioned file. It's still weird to see the mention of "production" even though we're in development, and I thought it would have been much cleaner to allow not using environments at all. Maybe to allow the database configuration information at the root of the config array in some 'database' key, and if "default_environment" is not found and if the environments is not passed to the CLI commands, then this key must exists and is used for the database connection. This would allow to completely bypass the environment mecanism and any reference of it in the configuration file.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the documentation and the configuration handling for database settings, environments, default_environment, and the CLI commands. Trace how the current production environment is selected and how database connections are built. Done means a configuration can place database information at the root, omit environments and default_environment, and use that configuration through the CLI without environment references.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- cli, databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100