PHPackages                             dfo/elasticraft - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. dfo/elasticraft

ActiveCraft-plugin[API Development](/categories/api)

dfo/elasticraft
===============

Elasticsearch plugin for Craft 3

0.4.6(8y ago)125891[2 issues](https://github.com/phoob/elasticraft/issues)MITPHP

Since Sep 13Pushed 8y ago2 watchersCompare

[ Source](https://github.com/phoob/elasticraft)[ Packagist](https://packagist.org/packages/dfo/elasticraft)[ RSS](/packages/dfo-elasticraft/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (16)Used By (0)

Elasticraft plugin for Craft CMS 3.x
====================================

[](#elasticraft-plugin-for-craft-cms-3x)

Elasticsearch plugin for Craft 3

Installation
------------

[](#installation)

To install Elasticraft, follow these steps:

1. Download &amp; unzip the file and place the `elasticraft` directory into your `craft/plugins` directory
2. -OR- do a `git clone https://github.com/phoob/elasticraft.git` directly into your `craft/plugins` folder. You can then update it with `git pull`
3. -OR- install with Composer via `composer require phoob/elasticraft`
4. Install plugin in the Craft Control Panel under Settings &gt; Plugins
5. The plugin folder should be named `elasticraft` for Craft to see it. GitHub recently started appending `-master` (the branch name) to the name of the folder for zip file downloads.

Elasticraft works on Craft 3.x.

Elasticraft Overview
--------------------

[](#elasticraft-overview)

Provides basic functionality to index entries and other craft elements to an elasticsearch server.

The plugin uses the [Elasticesearch PHP Client](https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/index.html).

Configuring Elasticraft
-----------------------

[](#configuring-elasticraft)

Copy `src/config.php` to `craft/config/elasticraft.php` and configure hosts and pagetransformers for the elements you wish to index to Elasticsearch.

Pagetransformers should inherit `League\Fractal\TransformerAbstract` – see examples in `./transformers/`.

If you want, put the server details in your `.env`.:

```
ELASTIC_HOSTS=localhost:9200
ELASTIC_INDEX_NAME=craftdev

```

Using Elasticraft
-----------------

[](#using-elasticraft)

Elasticraft indexes elements (and their descendants and ancestors) when you save or move an element. It also deletes the element from elasticsearch when the element is deleted in Craft.

Elasticraft Roadmap
-------------------

[](#elasticraft-roadmap)

- Make it more stable and test it. It has not been used in a production environment yet.
- Please note that the settings page and the widget is not in use currently. All settings are configured in the config file.

Brought to you by [Peter Holme Obrestad](https://dfo.no)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~13 days

Total

14

Last Release

3036d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1475800?v=4)[Peter Holme Obrestad](/maintainers/phoob)[@phoob](https://github.com/phoob)

---

Top Contributors

[![kbrabrand](https://avatars.githubusercontent.com/u/2884292?v=4)](https://github.com/kbrabrand "kbrabrand (1 commits)")[![nilsnh](https://avatars.githubusercontent.com/u/282865?v=4)](https://github.com/nilsnh "nilsnh (1 commits)")

---

Tags

cmsCraftcraftcmscraft-pluginelasticraft

### Embed Badge

![Health badge](/badges/dfo-elasticraft/health.svg)

```
[![Health](https://phpackages.com/badges/dfo-elasticraft/health.svg)](https://phpackages.com/packages/dfo-elasticraft)
```

###  Alternatives

[wrav/oembed

A simple plugin to extract media information from websites, like youtube videos, twitter statuses or blog articles.

36207.2k3](/packages/wrav-oembed)[verbb/hyper

A user-friendly links field for Craft.

24142.6k12](/packages/verbb-hyper)[craftpulse/craft-typesense

Craft Plugin that synchronises with Typesense

122.7k](/packages/craftpulse-craft-typesense)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
