{"id":22151029,"url":"https://github.com/justcoded/magento2-local-config","last_synced_at":"2025-03-24T13:20:46.862Z","repository":{"id":89292010,"uuid":"126849639","full_name":"justcoded/magento2-local-config","owner":"justcoded","description":"The module helps developers who work with remote databases or need to import databases frequently to the local machine","archived":false,"fork":false,"pushed_at":"2018-04-05T08:33:45.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T18:22:47.079Z","etag":null,"topics":["magento","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justcoded.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-26T15:27:19.000Z","updated_at":"2018-04-12T07:16:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"99bafa0c-2651-4739-8837-4e9adeefedef","html_url":"https://github.com/justcoded/magento2-local-config","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justcoded%2Fmagento2-local-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justcoded%2Fmagento2-local-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justcoded%2Fmagento2-local-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justcoded%2Fmagento2-local-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justcoded","download_url":"https://codeload.github.com/justcoded/magento2-local-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245276093,"owners_count":20588895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["magento","php"],"created_at":"2024-12-02T00:29:49.459Z","updated_at":"2025-03-24T13:20:46.842Z","avatar_url":"https://github.com/justcoded.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Purpose\n\n  The module helps developers who work with remote databases or need to import databases frequently to the local machine. It allows to store system config settings in the local file system and override database values.\n\n ### Description\n\n  Suppose you work with a live project that has live credentials for payment gateways or shipping methods. When importing the database locally, you don’t want to keep those live credentials since they probably won’t work on your machine and it’s not a secure practice overall - you got to have sandbox account details for testing purposes. \n  \n  In order not to change those settings each time you update your database with a fresh copy from the live environment, you can just store the local configuration in the file - it will automatically hook up and thus save you time which you’d better use on more important things.\n\n## Installation\n\nThis module is composer ready so you can install it via command (do not forget to add this repo to the composer.json before):\n\n```sh\ncomposer require justcoded/local-config:*\n```\n\n## Usage\n\nThe module has basic settings to specify the location of a local config file or a remote config file. Local config file has a higher priority, and in case you specify local and remote files, the settings will be hooked up from the local one.\n\nModule is configured at `Stores/Configuration/JustCoded/Local Config`\n\nThen just put the file `.env.system-config` (you can change name of the file from settings) in the root Magento folder with your required settings, for example:\n\n```env\ncatalog/frontend/grid_per_page=43\ncatalog/frontend/grid_per_page_values=9,15,30,43,56\n```\n\nIf you want to override the settings of the remote database, your local config file will look like this:\n\n```env\nweb/unsecure/base_url=http://local_magento.local/\nweb/unsecure/base_link_url=http://local_magento.local/\nweb/secure/base_url=http://local_magento.local/\nweb/secure/base_link_url=http://local_magento.local/\n```\n\n## Notes\n\nTry to keep only one local environment file and do not commit it to version control.\nThe file should only include your local environment values such as database passwords or API keys. Your production database should have a different password than your development database.\n\n## Compatibility\nFully tested with Magento 2.1.6\n\n## Contact\n\nFollow our blog at http://justcoded.com/blog/\n\n## Maintainers\n\n- [Oleg Biriukov](\u003cobirukov@justcoded.co\u003e)\n\n## License\n\nThe MIT License (MIT)\n\nCopyright © 2017 JustCoded\n\nPermission is hereby granted free of charge to any person obtaining a copy of this software and associated documentation files (the \"Software\") to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustcoded%2Fmagento2-local-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustcoded%2Fmagento2-local-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustcoded%2Fmagento2-local-config/lists"}