{"id":14975211,"url":"https://github.com/matriphe/php-iso-639","last_synced_at":"2025-04-06T02:09:43.190Z","repository":{"id":34213097,"uuid":"38070779","full_name":"matriphe/php-iso-639","owner":"matriphe","description":"PHP library to convert ISO-639-1 code to language name, based on Wikipedia's List of ISO 639-1 codes","archived":false,"fork":false,"pushed_at":"2024-03-17T22:45:30.000Z","size":57,"stargazers_count":50,"open_issues_count":1,"forks_count":19,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-30T08:03:22.664Z","etag":null,"topics":["hactoberfest","iso639","iso639-1"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matriphe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-25T19:55:03.000Z","updated_at":"2024-04-17T14:27:56.000Z","dependencies_parsed_at":"2024-06-18T12:29:50.337Z","dependency_job_id":"cfa5a509-aba3-4b67-bb29-1bc4f695090e","html_url":"https://github.com/matriphe/php-iso-639","commit_stats":{"total_commits":13,"total_committers":5,"mean_commits":2.6,"dds":0.5384615384615384,"last_synced_commit":"647ef1c150d0a080b91ba98977b5e0b8a27f7901"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matriphe%2Fphp-iso-639","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matriphe%2Fphp-iso-639/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matriphe%2Fphp-iso-639/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matriphe%2Fphp-iso-639/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matriphe","download_url":"https://codeload.github.com/matriphe/php-iso-639/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423515,"owners_count":20936626,"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":["hactoberfest","iso639","iso639-1"],"created_at":"2024-09-24T13:51:43.094Z","updated_at":"2025-04-06T02:09:43.165Z","avatar_url":"https://github.com/matriphe.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP ISO-639\n\n[![Run Test](https://github.com/matriphe/php-iso-639/actions/workflows/test-pipeline.yml/badge.svg?branch=master)](https://github.com/matriphe/php-iso-639/actions/workflows/test-pipeline.yml)\n[![Total Download](https://img.shields.io/packagist/dt/matriphe/iso-639.svg)](https://packagist.org/packages/matriphe/iso-639)\n[![Latest Stable Version](https://img.shields.io/packagist/v/matriphe/iso-639.svg)](https://packagist.org/packages/matriphe/iso-639)\n\nPHP library to convert ISO-639-1 code to language name, based on Wikipedia's [List of ISO 639-1 codes](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).\n\n## Installation\n\nFor PHP 8.1 or latest:\n\n```shell\ncomposer require matriphe/iso-639\n```\n\nFor older PHP version:\n\n```shell\ncomposer require matriphe/iso-639:1.3\n```\n\n## Usage Example\n\n```php\n\u003c?php\n\nrequired 'src/ISO639.php';\n//required 'vendor/autoload.php'; // If using composer\n\n$iso = new Matriphe\\ISO639\\ISO639;\n\n// Get language name from ISO-639-1 code\necho $iso-\u003elanguageByCode1('en'); // English\necho $iso-\u003elanguageByCode1('id'); // Indonesian\necho $iso-\u003elanguageByCode1('jv'); // Javanese\n\n// Get native language name from ISO-639-1 code\necho $iso-\u003enativeByCode1('en'); // English\necho $iso-\u003enativeByCode1('id'); // Bahasa Indonesia\necho $iso-\u003enativeByCode1('jv'); // basa Jawa\n\n// Get language name from ISO-639-2t code\necho $iso-\u003elanguageByCode2t('eng'); // English\necho $iso-\u003elanguageByCode2t('ind'); // Indonesian\necho $iso-\u003elanguageByCode2t('jav'); // Javanese\n\n// Get native language name from ISO-639-2t code\necho $iso-\u003enativeByCode2t('eng'); // English\necho $iso-\u003enativeByCode2t('ind'); // Bahasa Indonesia\necho $iso-\u003enativeByCode2t('jav'); // basa Jawa\n\n// Get language name from ISO-639-2b code\necho $iso-\u003elanguageByCode2b('eng'); // English\necho $iso-\u003elanguageByCode2b('ind'); // Indonesian\necho $iso-\u003elanguageByCode2b('jav'); // Javanese\n\n// Get native language name from ISO-639-2b code\necho $iso-\u003enativeByCode2b('eng'); // English\necho $iso-\u003enativeByCode2b('ind'); // Bahasa Indonesia\necho $iso-\u003enativeByCode2b('jav'); // basa Jawa\n\n// Get language name from ISO-639-3 code\necho $iso-\u003elanguageByCode3('eng'); // English\necho $iso-\u003elanguageByCode3('ind'); // Indonesian\necho $iso-\u003elanguageByCode3('jav'); // Javanese\n\n// Get native language name from ISO-639-3 code\necho $iso-\u003enativeByCode3('eng'); // English\necho $iso-\u003enativeByCode3('ind'); // Bahasa Indonesia\necho $iso-\u003enativeByCode3('jav'); // basa Jawa\n\n// Get language array from ISO-639-2b code\necho $iso-\u003egetLanguageByIsoCode2b('eng'); // ['en', 'eng', 'eng', 'eng', 'English', 'English']\necho $iso-\u003egetLanguageByIsoCode2b('ind'); // ['id', 'ind', 'ind', 'ind', 'Indonesian', 'Bahasa Indonesia']\necho $iso-\u003egetLanguageByIsoCode2b('jav'); // ['jv', 'jav', 'jav', 'jav', 'Javanese', 'basa Jawa']\n```\n\n## To Do\n\n* Convert language name to ISO-639 code\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatriphe%2Fphp-iso-639","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatriphe%2Fphp-iso-639","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatriphe%2Fphp-iso-639/lists"}