PHP code example of bepsvpt / blurhash
1. Go to this page and download the library: Download bepsvpt/blurhash library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bepsvpt / blurhash example snippets
BlurHash::encode($path);
app('blurhash')
->setComponentX(7)
->setComponentY(4)
->setMaxSize(96)
->encode(request('file'));
shell
php artisan vendor:publish --provider="Bepsvpt\Blurhash\BlurHashServiceProvider"