Weave Code
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

Browser Locale Laravel Package

codezero/browser-locale

Parse the browser’s Accept-Language header to get a visitor’s preferred locales in order. Returns primary locale or full locale list with language/region parts. Works in vanilla PHP and integrates with Laravel via the container.

View on GitHub
Deep Wiki
Context7
3.4.0
  • Add support for PHP 8.2 #9
3.3.0
  • Add support for Laravel 10
3.2.1
  • Fix deprecated call to trim() with a null value (#2)
3.2.0
  • Add support for Laravel 9
  • Move tests to GitHub Workflows
3.1.0
  • Add support for PHP 8.0
3.0.1

Add test config for PHP 7.3 and 7.4

3.0.0
  • Use Filter classes to filter specific Locale info with a new filter() method
  • getLocales() no longer accepts an argument to filter results
2.0.0
  • Rename main class & remove interface for simplicity
  • Make constructor argument required
  • Make private methods protected
  • Switch to PHPUnit for testing
  • Add ServiceProvider for Laravel
1.0.0
  • Get the primary browser locale
  • Get all browser locales
  • Get flattened arrays with specific locale info
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.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity