robinfranssen/analyzelocale
Composer 安装命令:
composer require robinfranssen/analyzelocale
包简介
This scans your laravel project for used locale keys that aren't translated by your locale files.
README 文档
README
NOTE: As of laravel 5.2.20 you need version ^0.1.4. For laravel 5.2.19 or lower you need version 0.1.3 of this package.
This package provides you with commands to analyze the translation keys used in your Laravel 5 application.
These commands can detect untranslated and invalid keys.
Installation
composer require robinfranssen/analyzelocale --dev
Add the service provider:
// config/app.php 'providers' => [ ... 'RobinFranssen\AnalyzeLocale\Providers\ServiceProvider', ... ],
Usage
From the command line, run php artisan locale:scan to see a full overview of the analyzation.
This will show you all information provided by the three other locale commands.
php artisan locale:invalid will show you the invalid keys.
php artisan locale:untranslated will show you the untranslated keys.
php artisan locale:allkeys will show you a table with untranslated and invalid keys.
Every command supports the --locale flag.
For example: php artisan locale:allkeys --locale=nl
robinfranssen/analyzelocale 适用场景与选型建议
robinfranssen/analyzelocale 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 20.96k 次下载、GitHub Stars 达 25, 最近一次更新时间为 2015 年 03 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「translation」 「locale」 「command」 「analyze」 「artisan」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 robinfranssen/analyzelocale 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 robinfranssen/analyzelocale 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 robinfranssen/analyzelocale 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Wrapper for exec and it's results
Symfony bundle to monitor and execute commands
Package for convenient work with Laravel's localization features
A custom URL rule class for Yii 2 which allows to create translated URL rules
Shell command module for PHP.
A Laravel Eloquent model trait for translatable resource
统计信息
- 总下载量: 20.96k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 25
- 点击次数: 31
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-09