Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Bing Translation

Bing Translation Laravel Package

melk/bing-translation

A Laravel package that integrates the Microsoft Bing Translator API, letting your application translate text between languages with a simple, framework-friendly interface for sending strings to Bing and returning translated results.

View on GitHub
Deep Wiki
Context7

Bing translation service for Symfony2

Frequently asked questions about Bing Translation
Is melk/bing-translation a Laravel package or a Symfony2 bundle?
Despite the Composer name, the repository is a Symfony2 bundle called BingTranslationBundle, with no Laravel service provider, facade, or config stub in evidence. It is best treated as a thin wrapper around the Microsoft Translator HTTP API rather than drop-in Laravel tooling. Symfony bundle conventions such as a DI extension and services.xml do not load in Laravel, so you would first need to lift the client class out and re-home it.
Does melk/bing-translation still work with the current Microsoft Translator API?
Probably not without modification. The original Bing AppID and Azure DataMarket client_id/client_secret OAuth flows were retired years ago, and a bundle of this vintage is likely wired to one of them. The current service is Azure Cognitive Services Translator v3, which uses a subscription key plus a short-lived bearer token from a regional token endpoint. Check which auth scheme the client targets before assuming it will authenticate.
How do I install melk/bing-translation in a Laravel app?
You would run composer require melk/bing-translation, but expect dependency conflicts because the package predates the PHP and PSR HTTP client constraints in a modern Laravel graph. There is no artisan vendor:publish step and no auto-discovered service provider, so nothing is wired up for you. Most teams end up copying the client class into app/Services or a domain adapter instead of registering the bundle.
Does the package ship a Laravel service provider, facade, or publishable config?
No. The technical assessment found no Laravel service provider, facade, or configuration publish stub, so there is no package discovery and no config-driven credential setup in the Laravel sense. Symfony bundles handle wiring through a DI extension and a Configuration tree instead. In Laravel you would supply your own container binding, config file, and environment-based credentials.
Which PHP and Laravel versions does the package support?
There is no release cadence or declared modern support, and the codebase dates from the Symfony2 era. Its PHP version and HTTP client constraints will likely conflict with a current Laravel dependency graph and may force downgrades you do not want. Treat Laravel compatibility as unverified until you test composer resolution in a scratch project.
How are API credentials configured, and does the package log them?
Credentials in this bundle generation were typically Symfony parameters or config values rather than Laravel environment variables read through config/services.php. The assessment flags credential handling as something to audit before adoption. Before shipping, confirm the subscription key is never written to logs, exception messages, or debug output, and keep it in .env behind a config wrapper you control.
Does it support batch translation, language detection, or glossary support?
The package is described as a thin wrapper that maps a single translate() call to a REST request, so batch semantics, language detection, and custom translator or glossary features are likely absent. That matters for both cost and latency, because batch endpoints let you translate many strings in one paid request. If you need those capabilities, implement them directly against Translator v3 instead of hoping this client exposes them.
What does the package return when a translation fails?
That behaviour is not documented, and it is the most important thing to test before putting this near a user-facing product. A silent pass-through that returns the source string is the worst failure mode, because untranslated copy ships with no alarm raised. Prefer a client that throws or returns a typed error you can catch, log, and fall back from deliberately.
Is the package tested, and is it actively maintained?
The assessment reports 0 stars, 0 dependents, and no score, with no issue triage or security response, so every defect becomes yours. There is no evidence of a test suite or recorded HTTP fixtures, which means a fork is closer to a rewrite than a port. Treat the repository as documentation of the API shape rather than a runtime dependency in your lockfile.
What should I use instead of melk/bing-translation in Laravel?
Define a first-party TranslationService interface in your domain layer and put an Azure Translator v3 adapter behind it, built with Guzzle or the vendor-maintained Azure SDK for PHP. That is a small client plus config, and it avoids inheriting deprecated authentication and stale dependencies. Add response caching or a translation-memory table so repeated page renders do not hit the paid API every time. Google Cloud Translation, DeepL, and AWS Translate are close equivalents if you later want to swap vendors.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
frankyso/ipaymu
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core