PHPackages                             rocketip/phplocale - 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. rocketip/phplocale

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

rocketip/phplocale
==================

PHPLocale: Get available locale based on HTTP "Accept-Language" header

0101↓100%1PHP

Since Jul 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/rocketip/PHPLocale)[ Packagist](https://packagist.org/packages/rocketip/phplocale)[ RSS](/packages/rocketip-phplocale/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHPLocale
=========

[](#phplocale)

[![StyleCI Status](https://camo.githubusercontent.com/c1c23b64c2e9334d3d8f805110ee7a558fdead7a32720d62c15ac87d75478c28/68747470733a2f2f7374796c6563692e696f2f7265706f732f36333030313534342f736869656c64)](https://styleci.io/repos/63001544)[![Build Status](https://camo.githubusercontent.com/f7c16bd8c9392a0920b5b7c33d17a1576d845d12df77a7ac9dcbab0164dad5ba/687474703a2f2f7472617669732d63692e6f72672f526f636b657449502f5048504c6f63616c652e706e67)](http://travis-ci.org/RocketIP/PHPLocale)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

PHPLocale: Get available locale based on HTTP "Accept-Language" header

Composer
========

[](#composer)

```
composer require rocketip/phplocale

```

Methods
=======

[](#methods)

getLanguage
-----------

[](#getlanguage)

```
