Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (13) | Download .zip | Reputation | Support forum | Blog (1) | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2022-08-24 (23 days ago) | Not yet rated by the users | Total: 20 This week: 2 | All time: 10,713 This week: 77 |
Version | License | PHP version | Categories | |||
vegvisir 1.0 | MIT/X Consortium ... | 5 | PHP 5, Searching, Libraries, Design P... |
Description | Author | |||
This package implements a universal search for model objects. Innovation Award
|
Install it using composer on your application:
composer require thiagoprz/vegvisir
Install chosen AdapterServiceProvider (see adapters for more information) service provider to config/app.php
:
..
'providers' => [
...
\Thiagoprz\Vegvisir\VegvisirElasticSearchServiceProvider::class,
],
...
Publish configuration by running
php artisan vendor:publish
and typing the number for your desired adapter (if using multiple adapters there's no need for running more than once, just choose one of them).
This will add the vegvisir.php
file to the config
directory. Bear in mind that this configuration contains directives for all adapters inside your application, those you don't need multiple configurations files for each adapter you use in case your application will be using more than one.
This package comes with built-in Adapters that can be easily use without any customization depending on your needs, of course you can and are encouraged to build your own Adapter to fill any specification or if you are using a different platform that the ones listed here.
This adapter connects to Elasticsearch host(s) and will insert/update/delete everytime changes happen to your model.
Follow the instructions in the adapter repository.
> Status: Under Development
This adapter connects to MongoDB and will insert/update/delete everytime changes happen to your model.
Follow the instructions in the adapter repository.
The main idea behind this project is to allow enhancing Laravel applications by using different databases from the main one (usually MySQL) as the entry point for search requests, those providing a better preformance and avoiding performance issues for large operations on the database. Based on this idea this repository will be useful for anyone who wants to implement their own search tool inside laravel application, it's really straight forward to create an adapter by following this steps.
| Adapter | STATUS | Release Version | Engine Version¹ | |-----------------------------------|-------------|-----------------|-----------------| | Elastic Search | Done | 0.0.1 | 7.11.0 | | MongoDB | In Progress | | | | MySQL | Todo | | | | Cassandra/ScyllaDB | Todo | | | | SQLite | Todo | | |
¹ Engine version means the version of the software used to build the package, there is a possibility that depending on the changes (specially breaking changes) made on the Third Party this package may not be stable or not work as expected.
vendor/phpunit/phpunit/phpunit --configuration phpunit.xml tests
Please feel free to create issues on this package, it will help a lot. I will address it as soon as possible.
This package is licensed under the MIT license.
<img width="36" height="36" src="assets/Vegvisir.svg">
Files |
File | Role | Description | ||
---|---|---|---|---|
assets (1 file) | ||||
src (1 file, 5 directories) | ||||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
License.txt | Doc. | Documentation | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files | / | src |
File | Role | Description | ||
---|---|---|---|---|
config (1 file) | ||||
Exceptions (1 file) | ||||
Interfaces (2 files) | ||||
Observers (1 file) | ||||
Traits (1 file) | ||||
VegvisirServiceProvider.php | Class | Class source |
Files | / | src | / | Interfaces |
File | Role | Description |
---|---|---|
AdapterInterface.php | Class | Class source |
RepositoryInterface.php | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.