supportpal/accept-language-parser
Parse HTTP Accept-Language headers into an ordered, weighted list of locales and language tags. Handles quality values and wildcards, making it easy to detect a visitor's preferred languages for localization, content negotiation, and multilingual routing in PHP applications.
A lightweight PHP package for parsing HTTP Accept-Language headers into ordered language preferences. It extracts locales and their quality values, making it easy to detect a visitor’s preferred language and choose an appropriate application locale.
How can I help you explore Laravel packages today?