{"id":18929468,"url":"https://github.com/thecodingmachine/utils.i18n.fine.language-detection","last_synced_at":"2025-04-15T15:31:02.528Z","repository":{"id":11375885,"uuid":"13814224","full_name":"thecodingmachine/utils.i18n.fine.language-detection","owner":"thecodingmachine","description":"Language detection is a PHP internationalisation package, it depends of translation-interface. This package contain many class to return a language select for internationalisation.","archived":false,"fork":false,"pushed_at":"2019-03-07T15:59:03.000Z","size":239,"stargazers_count":1,"open_issues_count":4,"forks_count":2,"subscribers_count":7,"default_branch":"4.0","last_synced_at":"2025-04-01T18:02:14.972Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thecodingmachine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-23T20:39:48.000Z","updated_at":"2019-12-20T13:22:22.000Z","dependencies_parsed_at":"2022-08-31T06:50:22.643Z","dependency_job_id":null,"html_url":"https://github.com/thecodingmachine/utils.i18n.fine.language-detection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Futils.i18n.fine.language-detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Futils.i18n.fine.language-detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Futils.i18n.fine.language-detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Futils.i18n.fine.language-detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodingmachine","download_url":"https://codeload.github.com/thecodingmachine/utils.i18n.fine.language-detection/tar.gz/refs/heads/4.0","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345252,"owners_count":21088231,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T11:32:54.911Z","updated_at":"2025-04-15T15:31:02.157Z","avatar_url":"https://github.com/thecodingmachine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Internationalisation with FINE\n==============================\n![Scrutinizer](https://scrutinizer-ci.com/g/thecodingmachine/utils.i18n.fine.language-detection/badges/quality-score.png?b=4.0)\n\nIf you are not familiar with Fine, you should stop reading **right now**! Please [get started with the main presentation](http://mouf-php.com/packages/mouf/utils.i18n.fine.translation-interface/README.md).\n\nLanguage detection is a PHP internationalisation package, it depends of translation-interface package.\nThis package contains many class to return the selected language for internationalisation.\n\nIt's could be with :\n- Browser detection,\n- fix language,\n- data set in session,\n- a link between domain name and language\n- a cascading of many solutions.\n\t\nThe language can be used to translate message in fine or whatever.\n\nDependencies\n------------\n\nFine comes as a *Composer* package and requires the \"Mouf\" framework to run.\nThe first step is therefore to [install Mouf](http://www.mouf-php.com/).\n\nOnce Mouf is installed, you can process to the Fine installation.\n\nInstall Fine\n--------------\n\nThis package is automatically added with the utils.i18n.fine.common\nEdit your *composer.json* file, and add a dependency on *mouf/utils.i18n.fine.langauge-detection.\n\nA minimal *composer.json* file might look like this:\n```\n\t{\n\t    \"require\": {\n\t        \"mouf/mouf\": \"~2.0\",\n\t        \"mouf/utils.i18n.fine.language-detection\": \"4.0.*\"\n\t    },\n\t    \"autoload\": {\n\t        \"psr-0\": {\n\t            \"Test\": \"src/\"\n\t        }\n\t    },\n\t    \"minimum-stability\": \"dev\"\n\t}\n```\nAs explained above, Fine is a package of the Mouf framework. Mouf allows you (amoung other things) to visualy \"build\" your project's dependencies and instances.\n\nTo install the dependency, run\n\tphp composer.phar install\n\nAfter this you can [create an instance](doc/install.md)\n\nLanguage format\n---------------\n\nThe language format is on 2 letters. If the language is not found this return null.\n\nImplement your own language detection\n-------------------------------------\n\nPlease read this [documentation](doc/create_class.md) or the [translation interface package](https://mouf-php.com/packages/mouf/utils.i18n.fine.translation-interface/doc/implementation.md)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Futils.i18n.fine.language-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodingmachine%2Futils.i18n.fine.language-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Futils.i18n.fine.language-detection/lists"}