PHPackages                             oneofftech/laravel-language-recognizer - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. oneofftech/laravel-language-recognizer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

oneofftech/laravel-language-recognizer
======================================

Recognize language in text

v0.2.1(1y ago)019.6k1MITPHPPHP ^8.2CI passing

Since Jul 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/OneOffTech/laravel-language-recognizer)[ Packagist](https://packagist.org/packages/oneofftech/laravel-language-recognizer)[ Docs](https://github.com/oneofftech/laravel-language-recognizer)[ RSS](/packages/oneofftech-laravel-language-recognizer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (12)Versions (4)Used By (0)

Laravel Language Recognizer
===========================

[](#laravel-language-recognizer)

[![Latest Version on Packagist](https://camo.githubusercontent.com/29230e47006913663872ab811953d2cb7f93adc07c6384cf22ea98f3dc6107a3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6e656f6666746563682f6c61726176656c2d6c616e67756167652d7265636f676e697a65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oneofftech/laravel-language-recognizer)[![Unit tests badge](https://github.com/OneOffTech/laravel-language-recognizer/actions/workflows/run-tests.yml/badge.svg)](https://github.com/OneOffTech/laravel-language-recognizer/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/81d818a970deb7050f1c4c2277060fa9b0f0166d07517c3a08f73ded7881f80f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6e656f6666746563682f6c61726176656c2d6c616e67756167652d7265636f676e697a65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oneofftech/laravel-language-recognizer)

Recognize the language in which a text is written.

Language Recognizer for Laravel is a package providing various drivers to recognize the language of a given text.

Currently two drivers are offered:

- A local binary application
- A [DeepL](https://www.deepl.com/) based one

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

[](#installation)

You can install the package via composer:

```
composer require oneofftech/laravel-language-recognizer
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Oneofftech\LaravelLanguageRecognizer\LaravelLanguageRecognizerServiceProvider" --tag="laravel-language-recognizer-config"
```

> If you change the path to the Franc binary, as configured in the local driver, ensure that the file is moved or present in that location. You can run `php artisan language-recognizer:install-local-driver` to download the binary in the configured location

The configuration file allows to configure the driver parameter for performing the language recognition.

### Driver pre-requisites

[](#driver-pre-requisites)

**Local Driver**

The language recognition, when performed using the local driver, is done using the [Franc](https://github.com/wooorm/franc) library, in particular a [packaged version](https://github.com/avvertix/franc-bin) in form on an executable.

To download the executable version run:

```
php artisan language-recognizer:install-local-driver
```

**DeepL Driver**

The [DeepL](https://www.deepl.com/) driver requires a valid API key. You can obtain a free key on [deepl.com](https://www.deepl.com/pro#developer).

After obtaining the key specifiy it via the `LANGUAGE_RECOGNIZER_DEEPL_KEY` environment variable.

Usage
-----

[](#usage)

```
use Oneofftech\LaravelLanguageRecognizer\Support\Facades\LanguageRecognizer;

LanguageRecognizer::recognize('Which language is used in this string!');
```

Testing
-------

[](#testing)

A test suite is available. To execute the tests run:

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Alessio](https://github.com/avvertix)
- [All Contributors](https://github.com/OneOffTech/laravel-language-recognizer/graphs/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance44

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95% 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 ~302 days

Total

3

Last Release

439d ago

PHP version history (2 changes)v0.1.0PHP ^8.0

v0.2.1PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/c44ae8dd5f85f742b93e5c3d48106749d3e3989fc50a0fa23d9fcaad35bff968?d=identicon)[OneOffAdmins](/maintainers/OneOffAdmins)

---

Top Contributors

[![avvertix](https://avatars.githubusercontent.com/u/5672748?v=4)](https://github.com/avvertix "avvertix (19 commits)")[![matteo-maggioni](https://avatars.githubusercontent.com/u/60788336?v=4)](https://github.com/matteo-maggioni "matteo-maggioni (1 commits)")

---

Tags

hacktoberfestlanguage-recognitionlaravellaravellanguagelanguage detectiononeofftech

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

### Embed Badge

![Health badge](/badges/oneofftech-laravel-language-recognizer/health.svg)

```
[![Health](https://phpackages.com/badges/oneofftech-laravel-language-recognizer/health.svg)](https://phpackages.com/packages/oneofftech-laravel-language-recognizer)
```

###  Alternatives

[spatie/laravel-enum

Laravel Enum support

3655.4M31](/packages/spatie-laravel-enum)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)

PHPackages © 2026

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