PHPackages                             sjaakmoes/elasticsearch-langdetect-php - 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. [Search &amp; Filtering](/categories/search)
4. /
5. sjaakmoes/elasticsearch-langdetect-php

ActiveLibrary[Search &amp; Filtering](/categories/search)

sjaakmoes/elasticsearch-langdetect-php
======================================

Langdetect namespace for Elasticsearch-PHP

1.0.0(10y ago)0211MITPHPPHP &gt;=5.4.0

Since Sep 30Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Sjaakmoes/elasticsearch-langdetect-php)[ Packagist](https://packagist.org/packages/sjaakmoes/elasticsearch-langdetect-php)[ Docs](https://github.com/Sjaakmoes/elasticsearch-langdetect-php)[ RSS](/packages/sjaakmoes-elasticsearch-langdetect-php/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

Elasticsearch Langdetect PHP Namespace
--------------------------------------

[](#elasticsearch-langdetect-php-namespace)

This module adds endpoints to the [Elasticsearch-PHP](https://github.com/elastic/elasticsearch-php) library when you are using the [elasticsearch-langdetect](https://github.com/jprante/elasticsearch-langdetect) plugin.

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

[](#installation)

This module can be installed with [Composer](https://getcomposer.org/). Add the elasticsearch-langdetect-php package to your `composer.json` file:

```
{
    "require": {
        "sjaakmoes/elasticsearch-langdetect-php": "~1.0"
    }
}
```

After the module is installed through composer, we need to inject this module into the [Elasticsearch-PHP](https://github.com/elastic/elasticsearch-php) library:

```
$params = [
    'host'              => ['localhost:9200'],
    'customNamespaces'  => [
        'langdetect'    => 'Langdetect\LangdetectNamespace'
    ]
];
$client = new Elasticsearch\Client($params);
```

Use
---

[](#use)

Language detection:

```
// Detect
$params = [
    'content'   => 'This is a sample text.'
];
$response = $client->langdetect()->detect($params);
```

The `$response` holds an array which looks like:

```
Array
(
    [profile] => /langdetect/
    [languages] => Array
        (
            [0] => Array
                (
                    [language] => en
                    [probability] => 0.9999959428847
                )

        )

)

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

3930d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b5e48c428d633517e88886e4f93a05250e343cfceaa96a1f94117f74576eab3?d=identicon)[Droeftoeter](/maintainers/Droeftoeter)

---

Top Contributors

[![Droeftoeter](https://avatars.githubusercontent.com/u/10672650?v=4)](https://github.com/Droeftoeter "Droeftoeter (3 commits)")

---

Tags

clientsearchlanguageelasticsearchlanguagedetectlangdetect

### Embed Badge

![Health badge](/badges/sjaakmoes-elasticsearch-langdetect-php/health.svg)

```
[![Health](https://phpackages.com/badges/sjaakmoes-elasticsearch-langdetect-php/health.svg)](https://phpackages.com/packages/sjaakmoes-elasticsearch-langdetect-php)
```

###  Alternatives

[elasticsearch/elasticsearch

PHP Client for Elasticsearch

5.3k187.3M1.1k](/packages/elasticsearch-elasticsearch)[mailerlite/laravel-elasticsearch

An easy way to use the official PHP ElasticSearch client in your Laravel applications.

936603.4k2](/packages/mailerlite-laravel-elasticsearch)[matchish/laravel-scout-elasticsearch

Search among multiple models with ElasticSearch and Laravel Scout

7491.7M3](/packages/matchish-laravel-scout-elasticsearch)[jeroen-g/explorer

Next-gen Elasticsearch driver for Laravel Scout.

399672.8k](/packages/jeroen-g-explorer)[jsq/amazon-es-php

Support for using IAM authentication with the official Elasticsearch PHP client

9311.4M13](/packages/jsq-amazon-es-php)[opensearch-project/opensearch-php

PHP Client for OpenSearch

15528.5M116](/packages/opensearch-project-opensearch-php)

PHPackages © 2026

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