Download the PHP package abrbit/laravel-scout-elasticsearch without Composer

On this page you can find all versions of the php package abrbit/laravel-scout-elasticsearch. 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-elasticsearch

🧠 Abrbit Laravel Scout Elasticsearch Driver

A developer-friendly Laravel Scout driver for Elasticsearch β€” built for distributed, scalable, and clean search experiences.
Crafted with ❀️ by the Abrbit team.


πŸš€ Features

βœ… Plug-and-play with Laravel Scout
βœ… Uses official Elasticsearch REST API
βœ… Auto-maps documents & IDs for distributed clusters
βœ… Supports multi-field search (e.g., title + description)
βœ… Fully configurable via config/services.php
βœ… Developer-friendly syntax β€” clean and minimal


πŸ“¦ Installation

Then register your search service endpoint and credentials in .env:


βš™οΈ Configuration

In your config/scout.php, set the driver to abrbit:

And in config/services.php, add:


🧩 Usage

You can use Laravel Scout’s native methods directly:

1. Get Eloquent Models (get())

This is the standard Scout method. It returns an Eloquent Collection of your models, hydrated from the database based on the IDs returned from the search.

2. Get Raw Source Data (getSource())

This is the recommended method for APIs or when you don't need full Eloquent models. It returns a clean array containing only the _source data directly from Elasticsearch, avoiding any database queries and providing excellent performance.

3. Get Paginated Raw Source Data (searchSource())

This method is similar to getSource(), but it supports pagination and is optimized for partial and short-term searches (e.g., 2 characters). It returns a paginated array of source data.

4. Get the Raw Elasticsearch Response (raw())

This method returns the entire, unprocessed JSON response from Elasticsearch. It is useful for debugging or when you need access to metadata like took, _shards, or max_score.

Your Eloquent model only needs to implement the Searchable trait:


πŸ” Example Query

Here’s what an example query looks like under the hood:


🧠 How It Works

AbrbitSearchEngine is a custom Laravel Scout engine that:

Example search response:


🧰 Developer Notes


πŸ§‘β€πŸ’» Contributing

We welcome contributions!
Feel free to open issues or submit pull requests.


βš–οΈ License

Released under the MIT License.


🌐 About Abrbit

Abrbit provides modern cloud infrastructure and SaaS services β€”
from DNS & mail hosting to AI, storage, and classroom platforms.

πŸ’‘ Visit us at abrbit.com


All versions of laravel-scout-elasticsearch with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/scout Version ^10.0
illuminate/support Version ^10.0|^11.0|^12.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 abrbit/laravel-scout-elasticsearch contains the following files

Loading the files please wait ...