Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mvrhov/mvrhovphinxbundle
https://github.com/mvrhov/mvrhovphinxbundle
phinx phinx-migrations symfony symfony-bundle
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mvrhov/mvrhovphinxbundle
- Owner: mvrhov
- License: mit
- Created: 2017-01-30T12:12:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-21T16:31:06.000Z (about 6 years ago)
- Last Synced: 2024-04-22T00:59:09.214Z (8 months ago)
- Topics: phinx, phinx-migrations, symfony, symfony-bundle
- Language: PHP
- Size: 22.5 KB
- Stars: 6
- Watchers: 2
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Composer
The fastest way to install Phinx bundle is to add it to your project using Composer (http://getcomposer.org/).
1. Install Composer:
```
curl -sS https://getcomposer.org/installer | php
```1. Require Phinx bundle as a dependency using Composer:
```
php composer.phar require mvrhov/phinx-bundle
```1. Install bundle:
```
php composer.phar install
```
2. Add bundle to `app/AppKernel.php````php
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
// ...if ('dev' === $this->getEnvironment()) {
// ...
$bundles[] = new \mvrhov\PhinxBundle\mvrhovPhinxBundle();
}
}
```
3. Add bundle config to `app/config/config_dev.yml`
Example:
```yml
mvrhov_phinx:
adapters:
mysql: Phinx\Db\Adapter\MysqlAdapter
environment:
connection:
adapter: mysql
host: '%database_host%'
port: '%database_port%'
name: '%database_name%'
user: '%database_user%'
pass: '%database_password%'
charset: UTF8
```
See `DependencyInjection/Configuration.php` for full list of available options.