bepsvpt/blurhash

A PHP implementation of BlurHash with Laravel integration.
334,919 133
Install
composer require bepsvpt/blurhash
Latest Version:4.1.0
PHP:^8.0
License:MIT
Last Updated:Mar 17, 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

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

Related Packages

doctrine/dbal

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

634,760,849 9,707
laravel/framework

The Laravel Framework.

584,532,650 34,931
laravel/tinker

Powerful REPL for the Laravel framework.

493,838,477 7,443
laravel/serializable-closure

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

408,553,772 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

387,976,821 4,658