Download the PHP package majidalaeinia/refresh-elastic without Composer
On this page you can find all versions of the php package majidalaeinia/refresh-elastic. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download majidalaeinia/refresh-elastic
More information about majidalaeinia/refresh-elastic
Files in majidalaeinia/refresh-elastic
Package refresh-elastic
Short Description Refresh Elasticsearch indices(truncate and make them again based on their mappings) for your tests.
License MIT
Homepage https://github.com/majidalaeinia/refresh-elastic
Informations about the package refresh-elastic
Refresh Elastic
You can use this package to refresh elastic indices (delete the index and make the index again with its corresponding mapping).
Inspired by Laravel RefreshDatabase.
Installation
Via Composer
Usage
First you need to publish the config file. ` Fill the config file with appropriate values.
Then, use the RefreshElastic
trait on your test.
Important NOTE: Make sure you are using this package on the development mode, because this trait deletes your elastic indices and re-indexes them.
Change log
Please see the changelog for more information on what has changed recently.
Testing
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
TODO
- [ ] Add tests
License
MIT. Please see the license file for more information.