Easily import your existing database in a ghost database, which could be useful for UnitTesting or backups etc.
This package is not yet stable, you can test it by installing it, but the package may be subject to large changes before a final release
This package is free to use, but inspired by Spaties' Poscardware we'd love to see where where this package is being developed. A photo of an important landmark in your area would be highly appreciated.
Our email address is [email protected]
Simply add the following line to your composer.json
and run composer update
"hihaho/laravel-ghost-database": "v0.1.*"
Or use composer to add it with the following command
composer require hihaho/laravel-ghost-database
This package is automatically discovered with Laravel Auto-Discovery, if you wish to register the package yourself you
can add this package to your composer.json
file:
"extra": {
"laravel": {
"dont-discover": [
"hihaho/laravel-ghost-database"
]
}
}
Three commands will be available with this package to easily export your current database to a "ghost" database.
php artisan ghost-db:export
- Exports your current DB to a SQL filephp artisan ghost-db:import
- Imports the last exported SQL file into the ghost DBphp artisan ghost-db:flush
- Flushes the ghost DB (also happens before an import)
Please see the changelog for more information on what has changed recently.
$ composer test
Please see contributing.md for details and a todolist.
MIT. Please see the license file for more information.