Download the PHP package open-southeners/laravel-scout-advaced-meilisearch without Composer

On this page you can find all versions of the php package open-southeners/laravel-scout-advaced-meilisearch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-scout-advaced-meilisearch

Laravel Scout Advanced Meilisearch required php version codecov Edit on VSCode online

Advanced Meilisearch integration with Laravel Scout.

Getting started

Install the package using Composer:

Filterable and sortable attributes

For sending filterable and sortable attributes to your Meilisearch server, configure your already searchable models like so:

Using PHP attributes

In case your project is using PHP 8, you can do this by attributes on the model class or the toSearchableArray method:

And finally run the following artisan command:

You could also run this command with --wait option which tells the command to wait for the task to finish:

Remember to check the official documentation about these filters and sorts.

Dumps

Create Meilisearch data dumps (data backups that will be saved on your Meilisearch server), with the following command:

As scout:update command, this also have a --wait option:

Read more about Meilisearch dumps here.

Tasks

List all tasks via command line, just running the following:

They can be even filtered! (see more options running it with --help)

Canceling enqueued tasks

Also can cancel tasks with a very simple command, you can either cancel an specific task or multiple:

The previous command will cancel task with UID = 1. If you wish to cancel multiple you could send them separated by comma or using options like:

So this will cancel all tasks that were enqueued before 1 day (can also send 1m, 1y... as in the background this is using Carbon::now()->add() & Carbon::now()->sub() methods)

Prune finished tasks

As canceling tasks won't make them disappear from the tasks history, you can just run the following:

Just for safety for debug purposes, this command does not remove those tasks that failed, if you wish to do so, run the command with --include-failed like so:

Don't worry, this will not remove tasks that were enqueued and not finished, as stated by Meilisearch official docs (see link just below).

Read more about Meilisearch tasks here.

Partners

skore logo

License

This package is open-sourced software licensed under the MIT license.


All versions of laravel-scout-advaced-meilisearch with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/console Version ^9.0 || ^10.0 || ^11.0
laravel/scout Version ^10.0
meilisearch/meilisearch-php Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package open-southeners/laravel-scout-advaced-meilisearch contains the following files

Loading the files please wait ....