mondaydarknight/libthumbor

A minimal PHP client for generating thumbor URLs

1.2 2022-10-21 04:26 UTC

This package is auto-updated.

Last update: 2025-05-21 09:59:31 UTC


README

A minimal PHP client for generating Thumbor URLs.

Installation

Run the following command to install the library via Composer.

composer require mondaydarknight/libthumbor

This package will be automatically registered using Laravel auto-discovery mechanism, publish the config file of this package with the following command, it'll generate the config file config/thumbor.php with required parameters.

php artisan vendor:publish --provider="Thumbor\ThumborServiceProvider" --tag=config

Usage

use Thumbor\Facades\Thumbor;

$url = (string) Thumbor::url('https://dummyimage.com/600x400.jpg')
    ->resize(100, 100);