bepsvpt/blurhash

A PHP implementation of BlurHash with Laravel integration.

Maintainers

Package info

github.com/bepsvpt/blurhash

pkg:composer/bepsvpt/blurhash

Statistics

Installs: 257 128

Dependents: 6

Suggesters: 0

Stars: 130

Open Issues: 0

4.1.0 2026-03-17 22:56 UTC

This package is auto-updated.

Last update: 2026-03-17 22:58:38 UTC


README

Testing Latest Stable Version Total Downloads License

A PHP implementation of BlurHash with Laravel integration.

BlurHash is a compact representation of a placeholder for an image.

screenshot

Nr8%YLkDR4j[aej]NSaznzjuk9ayR3jYofayj[f6

Version

4.1.0

Supported Laravel Version

8.0 ~ 13.x

Installation

Install using composer

composer require bepsvpt/blurhash

Publish config file

php artisan vendor:publish --provider="Bepsvpt\Blurhash\BlurHashServiceProvider"

Set up config file on config/blurhash.php

Done!

Usage

Facade

BlurHash::encode($path);

$file can be UploadedFile or a file path string.

app helper function

app('blurhash')
  ->setComponentX(7)
  ->setComponentY(4)
  ->setMaxSize(96)
  ->encode(request('file'));

Changelog

Please see CHANGELOG for details.

Upgrade

Please see UPGRADE for details.

License

BlurHash is licensed under The MIT License (MIT).