PHPackages                             m6web/elasticsearch-mock - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. m6web/elasticsearch-mock

AbandonedArchivedLibrary[Testing &amp; Quality](/categories/testing)

m6web/elasticsearch-mock
========================

Library providing a PHP mock for Elasticsearch-php

v5.0.0(9y ago)952.1k2[1 issues](https://github.com/M6Web/ElasticsearchMock/issues)3MITPHPPHP &gt;=7.0

Since Feb 13Pushed 9y ago23 watchersCompare

[ Source](https://github.com/M6Web/ElasticsearchMock)[ Packagist](https://packagist.org/packages/m6web/elasticsearch-mock)[ RSS](/packages/m6web-elasticsearch-mock/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (4)Versions (6)Used By (3)

Elasticsearch Mock [![Build Status](https://camo.githubusercontent.com/f2e8f616740dcf703075e42167b90efda29028c75333b985f924ecd1d2ff7f60/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f4d365765622f456c61737469637365617263684d6f636b2e706e67)](http://travis-ci.org/M6Web/ElasticsearchMock)
========================================================================================================================================================================================================================================================================================================

[](#elasticsearch-mock-)

This PHP 5.4+ library provides a Elasticsearch-php mock for your tests.

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

[](#installation)

Add this line in your `composer.json` :

```
{
    "require-dev": {
        "m6web/elasticsearch-mock": "dev-master"
    }
}
```

Update your vendors :

```
$ composer update m6web/elasticsearch-mock

```

Running the tests
-----------------

[](#running-the-tests)

```
$ php composer.phar install
$ ./vendor/bin/atoum -d tests
```

Credits
-------

[](#credits)

Developped by [M6 Web](http://tech.m6web.fr/).
Tested with [atoum](http://atoum.org).

License
-------

[](#license)

ElasticsearchMock is licensed under the [MIT license](LICENSE).

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 76.9% 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 ~238 days

Total

4

Last Release

3431d ago

Major Versions

v0.3 → v5.0.02017-01-30

PHP version history (2 changes)v0.1PHP &gt;=5.4.0

v5.0.0PHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2069361?v=4)[Patrick](/maintainers/Bedrock)[@Bedrock](https://github.com/Bedrock)

![](https://avatars.githubusercontent.com/u/5878620?v=4)[Fabien de Saint pern](/maintainers/fabdsp)[@fabdsp](https://github.com/fabdsp)

---

Top Contributors

[![valentin-claras](https://avatars.githubusercontent.com/u/4446791?v=4)](https://github.com/valentin-claras "valentin-claras (10 commits)")[![jubianchi](https://avatars.githubusercontent.com/u/327237?v=4)](https://github.com/jubianchi "jubianchi (1 commits)")[![mikaelrandy](https://avatars.githubusercontent.com/u/187703?v=4)](https://github.com/mikaelrandy "mikaelrandy (1 commits)")[![omansour](https://avatars.githubusercontent.com/u/1131098?v=4)](https://github.com/omansour "omansour (1 commits)")

---

Tags

elasticsearchmock

### Embed Badge

![Health badge](/badges/m6web-elasticsearch-mock/health.svg)

```
[![Health](https://phpackages.com/badges/m6web-elasticsearch-mock/health.svg)](https://phpackages.com/packages/m6web-elasticsearch-mock)
```

###  Alternatives

[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k516.1M26.1k](/packages/mockery-mockery)[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k557.4M751](/packages/phpspec-prophecy)[php-mock/php-mock

PHP-Mock can mock built-in PHP functions (e.g. time()). PHP-Mock relies on PHP's namespace fallback policy. No further extension is needed.

36919.3M119](/packages/php-mock-php-mock)[phake/phake

The Phake mock testing library

4758.2M341](/packages/phake-phake)[brain/monkey

Mocking utility for PHP functions and WordPress plugin API

34113.7M439](/packages/brain-monkey)[kahlan/kahlan

The PHP Test Framework for Freedom, Truth and Justice.

1.1k1.2M255](/packages/kahlan-kahlan)

PHPackages © 2026

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