承接 ianm/iso-639 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ianm/iso-639

最新稳定版本:1.0

Composer 安装命令:

composer require ianm/iso-639

包简介

PHP library to convert ISO-639-1 code to language name.

README 文档

README

Tests Total Download Latest Stable Version

PHP library to convert ISO-639-1 code to language name, based on Wikipedia's List of ISO 639-1 codes.

Forked to modify the response for French native to simply 'Français', rather than 'Français, langue française'.

Installation

Using composer: composer require ianm/iso-639

Usage Example

<?php required 'src/ISO639.php'; //required 'vendor/autoload.php'; // If using composer $iso = new IanM\ISO639\ISO639; // Get language name from ISO-639-1 code echo $iso->languageByCode1('en'); // English echo $iso->languageByCode1('id'); // Indonesian echo $iso->languageByCode1('jv'); // Javanese // Get native language name from ISO-639-1 code echo $iso->nativeByCode1('en'); // English echo $iso->nativeByCode1('id'); // Bahasa Indonesia echo $iso->nativeByCode1('jv'); // basa Jawa // Get language name from ISO-639-2t code echo $iso->languageByCode2t('eng'); // English echo $iso->languageByCode2t('ind'); // Indonesian echo $iso->languageByCode2t('jav'); // Javanese // Get native language name from ISO-639-2t code echo $iso->nativeByCode2t('eng'); // English echo $iso->nativeByCode2t('ind'); // Bahasa Indonesia echo $iso->nativeByCode2t('jav'); // basa Jawa // Get language name from ISO-639-2b code echo $iso->languageByCode2b('eng'); // English echo $iso->languageByCode2b('ind'); // Indonesian echo $iso->languageByCode2b('jav'); // Javanese // Get native language name from ISO-639-2b code echo $iso->nativeByCode2b('eng'); // English echo $iso->nativeByCode2b('ind'); // Bahasa Indonesia echo $iso->nativeByCode2b('jav'); // basa Jawa // Get language name from ISO-639-3 code echo $iso->languageByCode3('eng'); // English echo $iso->languageByCode3('ind'); // Indonesian echo $iso->languageByCode3('jav'); // Javanese // Get native language name from ISO-639-3 code echo $iso->nativeByCode3('eng'); // English echo $iso->nativeByCode3('ind'); // Bahasa Indonesia echo $iso->nativeByCode3('jav'); // basa Jawa // Get language array from ISO-639-2b code echo $iso->getLanguageByIsoCode2b('eng'); // ['en', 'eng', 'eng', 'eng', 'English', 'English'] echo $iso->getLanguageByIsoCode2b('ind'); // ['id', 'ind', 'ind', 'ind', 'Indonesian', 'Bahasa Indonesia'] echo $iso->getLanguageByIsoCode2b('jav'); // ['jv', 'jav', 'jav', 'jav', 'Javanese', 'basa Jawa']

To Do

  • Convert language name to ISO-639 code

统计信息

  • 总下载量: 27.46k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 21
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固