patrickschur/language-detection
Detect the language of any text in Laravel/PHP with fast, lightweight language identification. Supports multiple languages, simple API, and easy framework integration—ideal for auto-tagging content, localization workflows, and routing based on user input.
Adopt if:
Look elsewhere if:
fast-text for latency-sensitive apps).For Executives: "This MIT-licensed PHP package lets us automatically detect languages in user content—enabling features like instant translation prompts, localized compliance notices, and personalized experiences—without building or maintaining a custom solution. With 850+ stars and 55+ language support, it’s battle-tested and integrates seamlessly into our Laravel stack. For example, we could use it to trigger auto-translation for customer support tickets in real time, reducing response times by 30% while cutting costs. The low maintenance overhead (last updated March 2025) makes it a no-brainer for scaling multilingual features."
For Engineering: *"This is a lightweight, dependency-free library that plugs into Laravel’s service container. Key benefits:
LanguageDetector::detect() to add custom logic or override defaults.How can I help you explore Laravel packages today?