New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

bepsvpt/blurhash

A PHP implementation of BlurHash with Laravel integration.
359,026 134
Install
composer require bepsvpt/blurhash
Latest Version:4.1.1
PHP:^8.0
Laravel:8 – 13
Older releases:6 · 7
License:MIT
Last Updated:Nov 3, 2026
Links: GitHub  ·  Packagist
Maintainer: bepsvpt

BlurHash

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.1

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).

Related Packages

daun/statamic-placeholders

Generate low-quality image placeholders for lazyloading Statamic assets

11,110 10
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

651,963,193 9,701
laravel/framework

The Laravel Framework.

610,364,751 34,988
laravel/tinker

Powerful REPL for the Laravel framework.

518,004,183 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

435,097,283 607

Version History

Version Released PHP Laravel License
4.1.1 ^8.0 ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
4.1.0 ^8.0 ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
4.0.1 ^8.0 ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 MIT
4.0.0 ^8.0 ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 MIT
3.0.1 ^8.0 ^8.0 || ^9.0 || ^10.0 || ^11.0 MIT