filipponik/translate-analyzer
最新稳定版本:v0.0.4
Composer 安装命令:
composer require filipponik/translate-analyzer
包简介
Translating keys analyzer package
README 文档
README
Installing
composer require filipponik/translate-analyzer --dev
Usage
- Use
pwdto get needed directory, or use__DIR__in code.
$ pwd
/home/user/project
- Set your directory path, analyze some folder recursively and create language files.
$analyzer = new \Filipponik\TranslateAnalyzer\Analyzer(); $analyzer ->setDirectoryPath('/home/user/project') // Analyze only .php files ->setSuffix('php') // Analyze directory ../app ->analyze('app') // Write to laravel 8- file structure ->toLaravel8AndBefore(['en', 'es', 'ch']) // Write to laravel 9+ file structure ->toLaravel9AndAbove(['en', 'es', 'ch']) // Or write lang files to selected directory ->writeResultsToFiles('my_lang_files');
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-08