PHPackages                             remeritus/laravel-snowfall - 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. remeritus/laravel-snowfall

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

remeritus/laravel-snowfall
==========================

A configurable snowfall effect for Laravel.

v1.2.1(5mo ago)198MITPHPPHP ^8.1 || ^8.2

Since Dec 4Pushed 5mo agoCompare

[ Source](https://github.com/remeritus/laravel-snowfall)[ Packagist](https://packagist.org/packages/remeritus/laravel-snowfall)[ RSS](/packages/remeritus-laravel-snowfall/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (7)Used By (0)

  ![Logo for laravel-snowfall](https://camo.githubusercontent.com/5ef760252e5b53d2b4db6629f20e6fe54146938ce8d3d3747f3ab09270e7791b/68747470733a2f2f72656d657269742e75732f6f70656e2d736f757263652f62616e6e6572732f6c61726176656c2d736e6f7766616c6c2f6c696768742e706e67)Add Snowfall to your Laravel Project
====================================

[](#add-snowfall-to-your-laravel-project)

A configurable snowfall effect for Laravel applications. Add festive snow to your site easily with multiple layers, seasonal activation, and fully customizable settings.

[![Preview of remeritus/laravel-snowfall](https://camo.githubusercontent.com/a5e9cd8b80d712993b570f7dcab822da3a911aa83ae722c6a03624e1298076c7/68747470733a2f2f72656d657269742e75732f6f70656e2d736f757263652f70726576696577732f6c61726176656c2d736e6f7766616c6c2f707265766965772e676966)](https://camo.githubusercontent.com/a5e9cd8b80d712993b570f7dcab822da3a911aa83ae722c6a03624e1298076c7/68747470733a2f2f72656d657269742e75732f6f70656e2d736f757263652f70726576696577732f6c61726176656c2d736e6f7766616c6c2f707265766965772e676966)

Features
--------

[](#features)

- Multiple snow layers with configurable flake count, size, and speed.
- Seasonal activation: automatically show snow between configurable start and end dates.
- Blade directive: `@snowfall` for effortless inclusion.
- Fully configurable via `config/snowfall.php`.
- Lightweight, vanilla JS implementation using ``.

Requirements / Compatibility
----------------------------

[](#requirements--compatibility)

DependencyVersionLaravel`^10.0` | `^11.0` | `^12.0`PHP`^8.1` | `^8.2`Installation and Usage
----------------------

[](#installation-and-usage)

### 1. Require the package

[](#1-require-the-package)

You can install this package via composer using:

```
composer require remeritus/laravel-snowfall
```

The package will automatically register its service provider.

### 2. Publish the configuration

[](#2-publish-the-configuration)

To publish the config file to config/snowfall.php run:

```
php artisan vendor:publish --provider="Remeritus\Snowfall\SnowfallServiceProvider" --tag=config
```

### 3. Usage in Blade

[](#3-usage-in-blade)

Simply add `@snowfall` directive in your blade file, inside of the `` tag, on the pages where you want the snowfall to appear:

```
>

    @snowfall

```

### 4. Configuration

[](#4-configuration)

Edit `config/snowfall.php` to customize:

- **activate**: Enable or disable globally.
- **start\_date / end\_date**: Optional seasonal activation.
- **layers**: Array of snow layers. Each layer supports:
    - **flake\_count**: Number of flakes in this layer.
    - **max\_size**: Maximum flake size.
    - **max\_speed**: Maximum falling speed.
    - **swing\_min / swing\_max**: Side-to-side swinging amplitude.
- **color**: Snow RGB color (e.g., `'255,255,255'`).
- **opacity**: Snow opacity (`0.0`–`1.0`).
- **canvas\_z\_index**: Z-index of the snow ``.

Example:

```
'layers' => [
    [
        'flake_count' => 60,
        'max_size' => 4,
        'max_speed' => 1,
        'swing_min' => 0.5,
        'swing_max' => 1.5,
    ],
    // Add more layers as needed
],
```

#### Environment Variables

[](#environment-variables)

You may override any configuration setting via .env. Here are the available keys:

##### Master switch

[](#master-switch)

```
SNOWFALL_ENABLED=true
```

`true` → package loads and snow logic runs (default value)

`false` → package does nothing, no assets included

##### Mode control

[](#mode-control)

```
SNOWFALL_MODE=seasonal
```

Possible values:

ValueDescription`seasonal`Snow only appears between the configured dates (default value)`always`Snow appears all the time##### Seasonal dates

[](#seasonal-dates)

```
SNOWFALL_START_DATE=2025-12-01
SNOWFALL_END_DATE=2025-12-31
```

If not provided, the package defaults to:

December 1 → December 31 of the current year.

### 5. Notes

[](#5-notes)

The snow is rendered via a `` overlay with pointer-events: none so it won’t block user interaction. Works on all modern browsers with JavaScript enabled. Multiple layers create depth for a more realistic snowfall effect.

License
-------

[](#license)

MIT License.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance72

Regular maintenance activity

Popularity13

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

6

Last Release

160d ago

Major Versions

v0.3 → v1.02025-12-04

PHP version history (3 changes)v0.1PHP ^8.0

v1.2PHP ^8.1

v1.2.1PHP ^8.1 || ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/03b097b94a7e77a7daa6ddce34577e4f588eb6778c8ee5b3fead442cffe3b4e9?d=identicon)[remeritus](/maintainers/remeritus)

### Embed Badge

![Health badge](/badges/remeritus-laravel-snowfall/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[livewire/flux

The official UI component library for Livewire.

9385.0M86](/packages/livewire-flux)[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7825.3M18](/packages/akaunting-laravel-money)[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

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