nasution/lang-detector

Detect user language

Installs: 41

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/nasution/lang-detector

0.0.1 2016-08-16 01:43 UTC

This package is auto-updated.

Last update: 2025-10-10 12:33:48 UTC


README

This is just very simple language detector by using $_SERVER['HTTP_ACCEPT_LANGUAGE']. The output will be standard ISO 639-1.

Installation

composer require nasution/lang-detector

Usage

require 'vendor/autoload.php';

use Nasution\LangDetector;

echo LangDetector::detect(); // Output: id, en, it, ja, my, ms.