umpirsky/language-list
Provides language name lists in many locales (ISO-based), ready for PHP apps. Includes localized language names and easy lookup, useful for forms, selectors, and internationalized UIs, with data sourced from standards/CLDR and kept up to date.
config/language-list.php).LanguageList::get('en', 'fr')) for clean syntax.User, Post) with language-related methods (e.g., getLanguageName($locale)).languages table during migrations for SQL-based applications.art for Artificial languages).App::getLocale())? Avoid duplication.Umpirsky\LanguageList\LanguageList with a custom path resolver.@language($code, $locale) directive for templates.LanguageResource::collection()).axios or Laravel Mix).php artisan language:seed) to import data into the database.Cache::rememberForever()).Language class) if extending Eloquent.| Step | Task | Dependencies |
|---|---|---|
| 1 | Download package and extract formats | None |
| 2 | Create Laravel service provider | PHP 8.0+, Laravel |
| 3 | Implement caching layer | Redis/Memcached or file cache |
| 4 | Build facade/helpers | Step 2 |
| 5 | Test with Blade/Vue/React | Step 3 |
| 6 | Seed database (optional) | Eloquent, migrations |
| 7 | Add API endpoints (optional) | Laravel API Resources |
| 8 | Write integration tests | Step 5 |
dd() or dump() to inspect loaded data.boot() method.iso_code and locale for fast lookups.| Scenario | Impact | Mitigation |
|---|---|---|
| Corrupted download | Broken language names | Checksum validation, fallback cache |
| Missing locale | UI/API errors | Default to en or log warnings |
| File permissions | Failed loading | Set storage/logs permissions in Docker/hosting |
| ISO code changes | Breaking changes | Version pinning, backward-compatibility layer |
| Memory leaks | High RAM usage | Profile with Xdebug, optimize caching |
How can I help you explore Laravel packages today?