Download the PHP package octava/branching without Composer
On this page you can find all versions of the php package octava/branching. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download octava/branching
More information about octava/branching
Files in octava/branching
Package branching
Short Description Auto change database depends on current git branch.
License MIT
Informations about the package branching
BranchingBundle
Symfony BranchingBundle. Auto change mysql database depends on current git branch.
Bundle version is connected with supported symfony version.
Installation
Download bundle by composer
Then, enable the bundle by adding the following line in the app/AppKernel.php file of your project:
Create new branch git branch feature
or git checkout -b feature
.
After that run 'app/console' command, and bundle create and copy new database automatically.
Be sure, that your mysql connect has privileges to create new scheme. Bundle use default symfony connection params 'database_host' etc.
Configuration
Default configuration for "BranchingBundle"
Configuration for dev
Nginx example
Obviously, you're hosting must support dns name like this *.test.project.com
.
There is an example of nginx config for different branches:
Twig extensions
Current branch
- Get current branch, useful for generating project title
For master branch return master (dev)
string.
All versions of branching with dependencies
doctrine/doctrine-bundle Version ~2.0
symfony/dependency-injection Version ~4.4
symfony/process Version ~4.4
symfony/yaml Version ~4.4
symfony/monolog-bundle Version ^3.3
ext-zlib Version *
ext-pdo Version *
twig/twig Version ^3.3