PHPackages                             bushart/laravel-timezone - 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. bushart/laravel-timezone

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

bushart/laravel-timezone
========================

laravel set env variable

1.2(2y ago)19MITPHP

Since Dec 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/busharthussain/laravel-timezone)[ Packagist](https://packagist.org/packages/bushart/laravel-timezone)[ RSS](/packages/bushart-laravel-timezone/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (4)Used By (0)

Laravel Timezone
================

[](#laravel-timezone)

The `bushart/laravel-timezone` package simplifies timezone handling in Laravel applications. By using the `Timezone::getTimezones` method, you can effortlessly retrieve an array of timezones based on the provided current timezone and time hour, streamlining timezone-related operations in your Laravel project

### Docs

[](#docs)

- [Installation](#installation)
- [Usage](#usage)

### Install package

[](#install-package)

To install the package, you can use Composer. Add the following line to your `composer.json` file and execute the command:

```
composer require bushart/laravel-timezone
```

### Usage

[](#usage)

After installing the package, you can use it in your PHP files. Here's an example:

```
use Bushart\LaravelTimezone\Timezone;

// Returns a Timezones array
// You need to pass 2 values: current Timezone (e.g., 'UTC') and current time Hour (e.g., 7)

$timezones = Timezone::getTimezones('UTC', 7);

```

### Have fun CRUDding! :-)

[](#have-fun-crudding--)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

941d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c8f197be03f87ca7ebfb567da963b7310d8cf259148758fac79345b24a567f1?d=identicon)[busharthussain](/maintainers/busharthussain)

---

Top Contributors

[![busharthussain](https://avatars.githubusercontent.com/u/12028370?v=4)](https://github.com/busharthussain "busharthussain (3 commits)")

### Embed Badge

![Health badge](/badges/bushart-laravel-timezone/health.svg)

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

PHPackages © 2026

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