wikimedia/bcp-47-code
A lightweight PHP library offering value objects for BCP 47 language codes, letting you parse, validate, and format tags like en, de-AT, or zh-Hant safely instead of passing raw strings around.
wikimedia/bcp-47-code is a small PHP library for representing BCP 47 language codes as typed objects rather than ambiguous strings. It provides a lightweight Bcp47Code interface and a simple value implementation, making language-code handling explicit and easier to type-hint across applications and libraries.
How can I help you explore Laravel packages today?