PHPackages                             torskint/autodetect-lang - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. torskint/autodetect-lang

ActiveLibrary[Localization &amp; i18n](/categories/localization)

torskint/autodetect-lang
========================

v1.0.0(4y ago)04MITPHP

Since May 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/torskint/autodetect-lang)[ Packagist](https://packagist.org/packages/torskint/autodetect-lang)[ RSS](/packages/torskint-autodetect-lang/feed)WikiDiscussions main Synced 4w ago

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

```
require 'vendor/autoload.php';

## Appeler les classes nécéssaires grâce à l'autoload
use Torskint\AutodetectLang\Detector;

## La fonction detect
## Appelle HttpAcceptLanguageLocales & ensuite IpAddressLocales
## En gros il fourni une liste complete des résultats de ces deux fonctions ( Sans doublons )
var_dump( Detector::detect() );

## HttpAcceptLanguageLocales
## Détecte les langues suivant les préférences de l'utilisateur ( Via le navigateur web )
var_dump( Detector::HttpAcceptLanguageLocales() );

## IpAddressLocales
## Détecte les langues via l'adresse IP de l'utilisateur
var_dump( Detector::IpAddressLocales() );
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

1516d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9743d02da7db9f1b18e30c032caae85aa67a01392c0c51f1f2adacd396706d7f?d=identicon)[smsplateform.com](/maintainers/smsplateform.com)

### Embed Badge

![Health badge](/badges/torskint-autodetect-lang/health.svg)

```
[![Health](https://phpackages.com/badges/torskint-autodetect-lang/health.svg)](https://phpackages.com/packages/torskint-autodetect-lang)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[nnjeim/world

Laravel countries, states, cities, currencies, languages and IP geolocation

978475.9k8](/packages/nnjeim-world)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k16.8k](/packages/prestashop-prestashop)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

5.1k5.2k](/packages/shlinkio-shlink)[dachcom-digital/i18n

Pimcore I18n Manager.

28115.0k](/packages/dachcom-digital-i18n)[hibit-dev/geodetect

Automatically detect user's geo data based on their IP address

2322.8k](/packages/hibit-dev-geodetect)

PHPackages © 2026

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