- Is diablomedia/phinx-bundle a Laravel package?
- No. The package is a Symfony bundle that integrates Phinx database migrations and seeds into Symfony applications; the README does not describe Laravel integration or Artisan commands.
- How do I install diablomedia/phinx-bundle with Composer?
- Run composer require diablomedia/phinx-bundle, then add DiabloMedia\PhinxBundle\DiabloMediaPhinxBundle::class to config/bundles.php. You also add a diablo_media_phinx configuration file under config/packages. The README shows the minimal YAML needed for an environment DSN.
- How do I configure the Phinx database connection in Symfony?
- Add a diablo_media_phinx YAML config with environment.connection.dsn using the form adapter://user:password@host:port/database. Common adapters include mysql, pgsql, sqlite, and sqlsrv. The README notes that a database connection is required before running commands that access the database.
- Does diablomedia/phinx-bundle work with Laravel Artisan or Laravel migrations?
- No. It is a Symfony bundle that exposes Phinx commands through Symfony's console, so it does not add Artisan commands or replace Laravel's built-in migration system. Laravel applications should normally use Laravel migrations unless they deliberately add Symfony console tooling.
- Which Laravel versions are supported by diablomedia/phinx-bundle?
- The provided README is for a Symfony bundle and does not list any Laravel version support. There is no indication in the context that this package is intended for Laravel applications. Check the repository and Packagist metadata before assuming compatibility.
- How do I set migration and seed paths in diablomedia/phinx-bundle?
- Use the paths.migrations and paths.seeds options in the diablo_media_phinx YAML configuration. Each option accepts a string, a list, or a namespace map, and Phinx also supports glob patterns. Defaults point to %kernel.project_dir%/src/Resources/db/migrations and %kernel.project_dir%/src/Resources/db/seeds.
- Can I register custom Phinx database adapters with this bundle?
- Yes. The adapters option is a map where each key is the adapter name used by a DSN and each value is a class implementing Phinx's AdapterInterface. This lets you use custom connection types through the bundle configuration.
- How do I change the Phinx migration table name?
- Set environment.migration_table in the diablo_media_phinx YAML config; the default is phinxlog. Schema-qualified names such as phinx.log are supported by databases such as PostgreSQL. This controls the table Phinx uses to record which migrations have run.
- Can I use diablomedia/phinx-bundle in production?
- The README says Symfony's cache can be built without any configuration, but a database connection is required before running commands that access the database. For production, configure the environment connection DSN and migration table appropriately, then run Phinx commands through Symfony's console. The provided context does not include additional production hardening details.
- What are alternatives to diablomedia/phinx-bundle for Laravel applications?
- For Laravel applications, the most direct alternative is Laravel's built-in migration system, which uses Artisan instead of Phinx. You could also use Phinx directly without this Symfony bundle, or use Doctrine Migrations in Symfony projects. The context does not compare feature parity or maintenance status with those alternatives.