hihaho / laravel-ghost-database
Easily import your existing database in a ghost database, which could be useful for UnitTesting or backups etc.
Installs: 3 431
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: ^7.1
- illuminate/database: ^5.5|^6.0
- illuminate/support: ^5.5|^6.0
- nesbot/carbon: ^1.26.3 || ^2.0
- spatie/laravel-db-snapshots: ^1.1
Requires (Dev)
- orchestra/testbench: ^3.0|^4.0
- phpunit/phpunit: ^6.0|^7.0|^8.0
This package is auto-updated.
Last update: 2020-12-14 11:24:40 UTC
README
Easily import your existing database in a ghost database, which could be useful for UnitTesting or backups etc.
⚠️ Package in development ⚠️
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
📷 Photoware
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 photoware@hihaho.com
Installation
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
Laravel Auto-Discovery
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"
]
}
}
Usage
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)
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Maintainers
License
MIT. Please see the license file for more information.