Skip to content

bepsvpt/blurhash

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

2.1.1

Supported Laravel Version

8.0 ~ 10.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($file);

$file can be any Intervention make method acceptable source.

app helper function

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

License

BlurHash is licensed under The MIT License (MIT).

About

A PHP implementation of BlurHash with Laravel integration.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages