git clone https://github.com/weblab-technology/configuration-files-generator.git
2. install composer
curl -sS https://getcomposer.org/installer | php
php composer.phar install
Clone private.yml.dist to private.yml, now there is an example section here. You may fill this file with all your projects. Don't forget to add templates for them.
- template: example
format: php
destination: "../path-to-php-project/example.php"
Clone parameters.yml.dist to parameters.yml, now there are some tests parameters. This file is not required, It's used for generating command with these parameters. You may compose such command manually.
DB__TEST__HOST: "localhost"
DB__TEST__NAME: "test"
DB__TEST__USERNAME: "root"
DB__TEST__PASSWORD: "password"
Run command php commands/generateCommand.php (command with test parameters will be generated)
Output will look like this:
for windows
php run.php --DB__TEST__HOST="localhost" --DB__TEST__NAME="test" --DB__TEST__USERNAME="root" --DB__TEST__PASSWORD="password"
for linux
php run.php --DB__TEST__HOST="localhost" \
--DB__TEST__NAME="test" \
--DB__TEST__USERNAME="root" \
--DB__TEST__PASSWORD="password"
Copy output command and execute it in your command line.
Generated configuration files will be moved to the paths specified in the private.yml
WebExtractor is licensed under the MIT license.
Eugene Suvorov [email protected]
Oleksandr Knyga [email protected]