Download the PHP package ponito/elastico without Composer

On this page you can find all versions of the php package ponito/elastico. 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 elastico

Elastico

Latest Version on Packagist Total Downloads

Elasticsearch Eloquent ORM for Laravel. Extends Laravel's database layer so you can use Eloquent models, the query builder, aggregations, ILM policies, and scripted updates against Elasticsearch indices — with the same patterns you already know.

Elastico is extracted from and runs in production at Ponito, a Swiss price comparison service, where it backs the product catalogue, faceted search, crawler queues and affiliate feed imports on an Elasticsearch 8 cluster.

Requirements

Installation

Configuration

Add a connection to config/database.php:

Eloquent Models

Defining a model

Creating and managing the index

Basic CRUD

Query Builder

All standard Laravel builder methods work. Elastico adds ES-specific operators:

Filtering

Full-text / like

Sorting

Pagination and limits

Field selection

Collapse

Suggest

KNN (vector search)

Runtime fields

Cursor (point-in-time scrolling)

Multi-search

Counts and scalars

Compiled query

Aggregations

Aggregations are added to the builder and accessed via the response collection.

Metric aggregations

Bucket aggregations

Nested aggregations

Scripted updates

Update documents with Painless scripts instead of setting values directly.

Increment a field

Custom Painless script

Post-filter

Post-filter applies after aggregations are computed — useful for filtering results without affecting bucket counts:

Index Lifecycle Management (ILM)

Relations

Elastico supports both Elasticsearch-native relations and hybrid relations to standard SQL models.

Testing

The test suite is split into three layers:

Suite What it tests Needs ES?
Unit DSL query and aggregation compilation No
Feature Grammar compilation (builder → ES payload) No
Integration Actual queries against a live index Yes

Integration tests skip automatically with a clear message when Elasticsearch is not reachable. Configure the host via ELASTICSEARCH_HOST env var (defaults to http://localhost:9200).


All versions of elastico with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/collections Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
php-http/guzzle7-adapter Version ^1.0
elasticsearch/elasticsearch Version ^8.2
spatie/laravel-data Version ^4.6
illuminate/database Version ^11.0|^12.0
filament/filament Version ^4.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 ponito/elastico contains the following files

Loading the files please wait ...