mondaydarknight / libthumbor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

phumbor

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

About


Languages

Language:PHP 100.0%