Download the PHP package tekintian/pinyin without Composer

On this page you can find all versions of the php package tekintian/pinyin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pinyin

汉字转拼音工具

License Latest Stable Version Total Downloads

📝 项目简介

这是一个功能强大的汉字转拼音工具,基于权威的Unihan数据库,提供完整的汉字拼音转换解决方案。支持自定义映射、特殊字符处理、自动学习功能和多音字处理,适用于各种需要拼音转换的应用场景。

🧩 功能模块列表

1. 核心转换系统

2. 字典系统

3. 后台任务管理

4. Unihan数据管理

5. 智能学习系统

6. 工具集

✨ 核心特性

💡 技术亮点

1. 多级字典优先级系统

创新的五级字典优先级设计(自定义 > 多音字规则 > 常用字 > 生僻字 > Unihan),确保拼音转换的准确性和灵活性。

2. 高性能处理机制

3. 智能多音字识别

基于上下文的多音字智能处理,通过规则匹配和权重算法,在不同语境中选择正确的拼音。

4. 完整的Unihan数据覆盖

覆盖超过60,000个汉字,包括CJK基本汉字及扩展区A-G的全部拼音数据,提供最全面的汉字拼音支持。

5. 灵活的配置系统

丰富的配置选项,支持自定义字典加载策略、持久化设置和自动保存间隔等参数,满足不同使用场景需求。

6. 完善的后台任务架构

支持守护进程模式的任务管理系统,可处理异步转换请求和大批量数据处理任务,适用于生产环境。

7. 智能学习能力

自动识别并记忆生僻字拼音,通过自学习机制不断优化转换准确性,实现系统的持续进化。

8. 全面的测试覆盖

包含基础转换、多音字、特殊字符、自定义字典和边界条件等多种测试类型,确保系统稳定性和准确性。

📋 快速开始

安装

使用Composer安装:

基本使用

🏗️ 项目架构

字典优先级系统

从高到低依次为:

  1. custom_xxx - 自定义字典(用户自定义映射)
  2. polyphone_xxx - 多音字规则字典
  3. common_xxx - 常用字典
  4. rare_xxx - 生僻字字典
  5. unihan - Unihan字典(基于权威Unicode数据库)

核心模块

🚀 高级功能

后台任务管理

Unihan数据管理

特殊字符处理

📊 数据统计

Unihan字典覆盖

区块 字符数量 说明
CJK基本汉字 20,924 常用汉字
CJK扩展A区 5,786 扩展A区生僻字
CJK扩展B区 14,614 扩展B区生僻字
CJK扩展C区 506 扩展C区生僻字
CJK扩展D区 222 扩展D区生僻字
CJK扩展E区 5,762 扩展E区生僻字
CJK扩展F区 7,473 扩展F区生僻字
CJK扩展G区 4,939 扩展G区生僻字

总计: 超过 60,000 个汉字的完整拼音覆盖

📚 详细文档

⚙️ 配置选项

🧪 测试

本项目所有测试通过 run_tests.sh 脚本统一管理,支持多种测试类型和参数选项:

注意: prod分支不包含 测试用例 代码 和 unicode 数据管理工具 和 tools 目录

测试类型说明

该测试脚本包含以下测试类型:

测试报告

运行测试后,将生成 Markdown 格式的测试报告,包含详细的测试结果统计和潜在问题分析。

其他测试方式

详细测试文档请参考 测试指南.md

🔄 开发计划

已完成功能

🔜 计划功能

🤝 贡献指南

欢迎贡献代码!请阅读:

📄 许可证

本项目使用MIT许可证,详情请查看LICENSE文件。

🔗 相关链接


版本: 1.0.0
最后更新: 2025-11-20 维护者: tekintian https://dev.tekin.cn


All versions of pinyin with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2 || ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tekintian/pinyin contains the following files

Loading the files please wait ...