PHPackages                             baspa/laravel-timezones - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. baspa/laravel-timezones

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

baspa/laravel-timezones
=======================

Laravel package to generate arrays of available timezones to be used in lists.

v1.5.0(3w ago)220.3k↑67.7%[1 PRs](https://github.com/Baspa/laravel-timezones/pulls)2MITPHPPHP ^8.2|^8.3|^8.4CI passing

Since Jan 31Pushed 4d ago1 watchersCompare

[ Source](https://github.com/Baspa/laravel-timezones)[ Packagist](https://packagist.org/packages/baspa/laravel-timezones)[ Docs](https://github.com/baspa/laravel-timezones)[ GitHub Sponsors](https://github.com/baspa)[ RSS](/packages/baspa-laravel-timezones/feed)WikiDiscussions main Synced yesterday

READMEChangelog (6)Dependencies (41)Versions (20)Used By (2)

[![Banner](/docs/banner.png)](/docs/banner.png)

Laravel package to generate arrays of available timezones to be used in lists.
==============================================================================

[](#laravel-package-to-generate-arrays-of-available-timezones-to-be-used-in-lists)

[![Latest Version on Packagist](https://camo.githubusercontent.com/37f9cdfd2803dd24fcb378deff5853049df66a7f9a097c2a6875f3699fa94cfb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62617370612f6c61726176656c2d74696d657a6f6e65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/baspa/laravel-timezones)[![GitHub Tests Action Status](https://camo.githubusercontent.com/f0bf5465f62b526d2c8a821cd7e91012338472ce642ef165a65228762f48a8ee/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f62617370612f6c61726176656c2d74696d657a6f6e65732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/baspa/laravel-timezones/actions?query=workflow%3Arun-tests+branch%3Amain)[![Code Coverage](https://camo.githubusercontent.com/2e57658aaca33ae3f06d6d1dfa54e81eda43dbcfbdc86981f712a7b36801784f/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f62617370612f6c61726176656c2d74696d657a6f6e65733f7374796c653d666c61742d737175617265)](https://codecov.io/gh/baspa/laravel-timezones)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/dc973f85ca626e8fc300b3ba4d0254ed194b2b5e3d45c1616cdb574ef1fc2952/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f62617370612f6c61726176656c2d74696d657a6f6e65732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/baspa/laravel-timezones/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/ea96af51ae9d7f85c3b8d39b349fd0d4cf8c4587f1771427b66ded45026e75c9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62617370612f6c61726176656c2d74696d657a6f6e65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/baspa/laravel-timezones)

The Laravel Timezones package is a convenient solution for Laravel developers who need to include a dropdown menu of timezones in their applications. This package simplifies the process of incorporating a timezone selection feature, saving developers valuable time and effort.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require baspa/laravel-timezones
```

Usage
-----

[](#usage)

### Timezones grouped by continent

[](#timezones-grouped-by-continent)

```
use Baspa\Timezones\Facades\Timezones;
//
$groupedTimezones = Timezones::toArray(grouped: true);
```

### All timezones

[](#all-timezones)

```
use Baspa\Timezones\Facades\Timezones;
//
$timezones = Timezones::toArray();
```

### Exclude continents

[](#exclude-continents)

```
use Baspa\Timezones\Facades\Timezones;
//
$timezones = Timezones::excludeContinents(['Africa', 'America'])
    ->toArray();
```

### Show offset

[](#show-offset)

```
$timezones = Timezones::showOffset()->toArray();
// or
$timezones = Timezones::showOffset(showOffset: false)->toArray();
```

### Include general timezones

[](#include-general-timezones)

To include general timezones like GMT or UTC use the `includeGeneral` method.

```
$timezones = Timezones::includeGeneral()->toArray();
```

### Show country names

[](#show-country-names)

To include country names alongside timezone labels use the `showCountry` method. This uses PHP's built-in timezone data combined with the [league/iso3166](https://github.com/thephpleague/iso3166) package to provide accurate country names.

```
// Basic usage with country names
$timezones = Timezones::showCountry()->toArray();
// Output: "Amsterdam (Netherlands)"

// Combined with other methods
$timezones = Timezones::showCountry()
    ->showOffset(false)
    ->toArray();
// Output: "Amsterdam (Netherlands)"

// With full continent names preserved
$timezones = Timezones::showCountry()->toArrayWithContinents();
// Output: "Europe / Amsterdam (Netherlands)"

// Grouped by continent with country names
$timezones = Timezones::showCountry()->toArray(grouped: true);
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Baspa](https://github.com/Baspa)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

56

—

FairBetter than 97% of packages

Maintenance97

Actively maintained with recent releases

Popularity30

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 58.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~57 days

Total

16

Last Release

24d ago

PHP version history (3 changes)v1.0.0PHP ^8.1

v1.2.0PHP ^8.1|^8.2

v1.4.0PHP ^8.2|^8.3|^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10845460?v=4)[Bas van Dinther](/maintainers/Baspa)[@Baspa](https://github.com/Baspa)

---

Top Contributors

[![Baspa](https://avatars.githubusercontent.com/u/10845460?v=4)](https://github.com/Baspa "Baspa (42 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (20 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (9 commits)")[![markvaneijk](https://avatars.githubusercontent.com/u/1925388?v=4)](https://github.com/markvaneijk "markvaneijk (1 commits)")

---

Tags

laraveltimezoneslaravellaravel-timezonesBaspa

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/baspa-laravel-timezones/health.svg)

```
[![Health](https://phpackages.com/badges/baspa-laravel-timezones/health.svg)](https://phpackages.com/packages/baspa-laravel-timezones)
```

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

199.4k](/packages/tarfin-labs-event-machine)[tapp/filament-form-builder

User facing form builder using Filament components

132.4k3](/packages/tapp-filament-form-builder)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
