Weave 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
Laravel Timezones

Laravel Timezones Laravel Package

baspa/laravel-timezones

A Laravel package for working with time zones in your applications. Discover, list, and select from available time zones using helper methods and Blade-friendly data, ideal for building timezone pickers, user settings, and locale-aware scheduling.

Deep Wiki
Context7

This package offers a convenient solution for Laravel developers who need to include a dropdown menu of timezones in their applications

Frequently asked questions about Laravel Timezones
How do I install baspa/laravel-timezones?
Install it with Composer using composer require baspa/laravel-timezones. Laravel's package auto-discovery should register the service provider if the package supports it. After installation, review the package README for any required configuration or publishing steps.
What can I use baspa/laravel-timezones for in a Laravel app?
It is designed to help Laravel developers discover, list, and select available time zones. The package provides helper methods and Blade-friendly data, making it useful for timezone pickers, user settings, and locale-aware scheduling screens.
How do I build a timezone dropdown with this package?
Use the package's timezone listing helpers to get the available time zones, then pass that data to a Blade view. In Blade, iterate over the list to render select options, and validate the submitted value with Laravel's timezone validation rule.
Can I use it for user timezone settings?
Yes, the package is aimed at exactly that kind of use case. It gives you Blade-friendly timezone data so users can choose a timezone in account or profile settings. Store the selected timezone and use it when displaying or scheduling dates.
Which Laravel versions does baspa/laravel-timezones support?
The provided overview does not list supported Laravel versions. Check the package's composer.json and README on Packagist or its repository for the exact version constraints. Confirm compatibility with your app's Laravel and PHP versions before installing.
Is baspa/laravel-timezones good for locale-aware scheduling?
It can help by giving you a consistent list of time zones for scheduling interfaces. Combine the selected timezone with Laravel's date and timezone handling when saving or displaying scheduled events. The package itself focuses on timezone discovery, listing, and selection data.
Does this package include a config file I can publish?
The overview does not mention configuration publishing; it focuses on timezone helpers and Blade-friendly data. Check the README for any publishable config or customization options. If none are documented, you can typically rely on the provided helpers directly.
How should I test a timezone picker built with this package?
Write Laravel feature tests that submit a valid timezone from the package's list and assert it is stored correctly. Also test validation failures for invalid timezone values. Because timezone identifiers are stable data, tests can assert against known values from the list.
What are alternatives to baspa/laravel-timezones?
PHP's DateTimeZone::listIdentifiers() and Laravel's timezone validation rule can cover basic timezone dropdown needs without an extra package. If you want a ready-made helper and Blade-friendly data, this package may reduce boilerplate. Compare maintenance and Laravel version support before choosing.
Is baspa/laravel-timezones maintained and safe for production?
The provided context does not include release history or maintenance details. Check the repository activity, Packagist release dates, and open issues before using it in production. Also verify that it supports your Laravel version and has tests for the features you rely on.
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.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core