georgii-web/crowdin-api
Composer 安装命令:
composer require georgii-web/crowdin-api
包简介
A crowdin API implementation in PHP
README 文档
README
Inspired by https://github.com/akeneo/php-crowdin-api
Installation
composer require georgii-web/crowdin-api
Usage
use ElKuKu\Crowdin\Crowdin; use ElKuKu\Crowdin\Languagefile; $crowdin = new Crowdin('{project-id}', '{api-key}'); // Add new translation file $crowdin->file->add(new Languagefile('{local path}', '{crowdin path}')); // Export a translated file $crowdin->file->export('{crowdin path}', '{language}', '{local path}'); // Delete a translation file $crowdin->file->delete('{crowdin path}'); // Export (build) translation files on Crowdin $crowdin->translation->export(); // Download a zip file containing all language files $crowdin->translation->download('all.zip', '/local/path/to/package.zip');
Note: There is fluent auto complete and lots of doc blocks, taken from the official API documentation.
... to make life easy in your IDE 😉
Methods
Project
create()https://crowdin.com/page/api/create-projectedit()https://crowdin.com/page/api/edit-projectdelete()https://crowdin.com/page/api/delete-projectgetInfo()https://crowdin.com/page/api/infogetList()https://crowdin.com/page/api/get-projects
Directory
add()https://crowdin.com/page/api/add-directoryupdate()https://crowdin.com/page/api/change-directorydelete()https://crowdin.com/page/api/delete-directory
File
add()https://crowdin.com/page/api/add-fileupdate()https://crowdin.com/page/api/update-filedelete()https://crowdin.com/page/api/delete-fileexport()https://crowdin.com/page/api/export-file
Translation
upload()https://crowdin.com/page/api/upload-translationexport()https://crowdin.com/page/api/exportdownload()https://crowdin.com/page/api/downloadgetStatus()https://crowdin.com/page/api/status
Language
getSupported()https://crowdin.com/page/api/supported-languagesgetStatus()https://crowdin.com/page/api/language-status
Memory
download()https://crowdin.com/page/api/download-tmupload()https://crowdin.com/page/api/upload-tm
Glossary
download()https://crowdin.com/page/api/download-glossaryupload()https://crowdin.com/page/api/upload-glossary
hF
=;)
georgii-web/crowdin-api 适用场景与选型建议
georgii-web/crowdin-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.13k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2021 年 04 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 georgii-web/crowdin-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 georgii-web/crowdin-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: WTFPL
- 更新时间: 2021-04-08

