rolice/lang-sync
Composer 安装命令:
composer require rolice/lang-sync
包简介
Parse templates, extracts laguages and sync them through different translations.
README 文档
README
Language Extractor and Synchroniser
This package is developed for Laravel 4.2. Larvel 5.0+ support is comming soon.
How it works?
The package will walk through the application files and will search for any Lang::get or @lang statements and will check for translation in the proper language file. A new file will be created, in case no file exists or a line will be put in the langauge file if the exact translation is missing.
All language files will be parsed with a unified translation code-style.
Installation
You can easily install the package in your Laravel project by simply executing the following command:
composer require rolice/lang-sync
After the installation you have to add the service provider in app config:
'Rolice\LangSync\LangSyncServiceProvider'
for PHP 5.6+ you can add the following:
Rolice\LangSync\LangSyncServiceProvider::class
Usage
The usage is done through artisan command. This is done through command line like:
php artisan locale:extract
You can easily call it programmatically from your PHP code like, in case command line is not accessible:
Artisan::call('locale:extract')
rolice/lang-sync 适用场景与选型建议
rolice/lang-sync 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 1, 最近一次更新时间为 2015 年 09 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 rolice/lang-sync 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 rolice/lang-sync 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-09-01