chiarillomax/yandex-translator-bundle
ContainerAware, EventDispatcher) would need replacement.ContainerAware services) with Laravel’s Service Container or Facades.yandex.translator service) to use Laravel’s bindings or Service Providers.| Risk Area | Severity | Mitigation Strategy |
|---|---|---|
| Symfony 2 EOL | High | Only viable for legacy Symfony 2 apps. |
| Deprecated API | High | Yandex v1.5 is obsolete; v2.0 requires OAuth. |
| No Laravel Support | High | Requires custom wrapper or full rewrite. |
| Poor Maintenance | Medium | Last release in 2016; no active updates. |
| Testing Coverage | Medium | Basic unit tests exist, but no integration tests. |
| Component | Fit Level | Notes |
|---|---|---|
| Symfony 2 | Perfect | Designed for Symfony 2; zero changes needed. |
| Symfony 5/6 | Poor | Requires major refactoring (DI, services, events). |
| Laravel | Poor | Needs custom wrapper or rewrite to use Laravel’s ecosystem. |
| PHP 7.4+ | Poor | Bundle likely uses PHP 5.4-5.6 syntax (e.g., Array, sprintf). |
| Modern APIs | None | Yandex v1.5 is deprecated; v2.0 requires OAuth. |
composer require chiarillomax/yandex-translator-bundle
AppKernel.php.YandexTranslatorClient).// app/Providers/YandexTranslatorServiceProvider.php
public function register()
{
$this->app->singleton('yandex.translator', function ($app) {
return new YandexTranslatorClient(config('services.yandex.key'));
});
}
ContainerAware, EventDispatcher dependencies.// config/services.php
'yandex' => [
'key' => env('YANDEX_TRANSLATE_KEY'),
'base_url' => 'https://translate.yandex.net/api/v1.5/tr.json/',
],
// app/Facades/YandexTranslator.php
public static function translate($text, $from, $to)
{
return app('yandex.translator')->translate($text, $from, $to);
}
| Dependency | Version Support | Risk |
|---|---|---|
| Symfony 2 | 2.3–2.8 | EOL; security risks. |
| PHP | 5.4–5.6 | Unsupported in Laravel. |
| Guzzle HTTP | Not specified | May conflict with Laravel’s Guzzle. |
| Yandex API v1.5 | Deprecated | No SLA; may break anytime. |
| Task | Effort | Notes |
|---|---|---|
| Bug Fixes | Low | No active maintenance; issues may go unresolved. |
| API Updates | High | Yandex v1.5 is deprecated; v2.0 requires OAuth and rewrite. |
| Security Patches | None | Symfony 2 is EOL; no updates for vulnerabilities. |
| Dependency Updates | High | Bundle uses old PHP/Symfony versions; conflicts likely in modern stacks. |
How can I help you explore Laravel packages today?