Download the PHP package traineratwot/composer-config without Composer
On this page you can find all versions of the php package traineratwot/composer-config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download traineratwot/composer-config
More information about traineratwot/composer-config
Files in traineratwot/composer-config
Informations about the package composer-config
composer-config
en
This is a plugin for managing the settings of your libraries and projects
How does it work?
- install plugins or a plugin-dependent package
- if this is a project
- in the
composer.json
file, you need to set the path to the php file with your future settings inextra.composer-config.configPath
- in the settings file, you must register all the global settings of your application in this way
Config::set('name', 'value','namespace');
- in the
- if library
- in the
composer.json
file, you can add the settings keys and their description to theextra.composer-config
- in the
composer.json
file, you can set the desired package name toextra.composer-config.namespace
by default package name - in your project, use
Config::get('name','namespace');
- in the
ru
Это плагин для управления настройками ваших библиотек и проектов
Как это работает?
- установить плагины или пакет зависящий от плагина
- если это проект
- в файле
composer.json
надо установить вextra.composer-config.configPath
путь до php файла с вашими будущими настройками - в файле с настрйками вы должны прописать все глобальный насройки вашего приложения таким образом
Config::set('name', 'value','namespace');
- в файле
- если библиотека
- в файле
composer.json
можно добавить вextra.composer-config
ключи настроек и их описание - в файле
composer.json
можно установить вextra.composer-config.namespace
желаемыйnamespace
по умолчанию имя пакета - в вашем проекте используйте
Config::get('name','namespace');
- в файле
Добавить все необходимое в ваш composer.json
Add everything you need to your composer.json
config.php
Commands
getAllConfigs
en
Returns all settings that can or should be defined in the project
ru
Возвращякт все настройки которые можно или нужну определить в проэкте
responce
configUpdate
en
creates a special file that will help your IDE determine which constants have been set
ru
создает специальный файл который поможет вашей IDE определить какие константы были установлены
responce
Recommendations/Cоветы
en
I advise you to create a File Watchers
on the configuration file that would execute the composer configUpdate
command
ru
Советую создать File Watchers
на файл конфигурации который бы выполнял команду composer configUpdate