New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

matteoantoci/phpthumb

Easy thumbnailing in Laravel 4
131
Install
composer require matteoantoci/phpthumb:dev-master
PHP:>=5.3.0
Last Updated:Dec 20, 2013
Links: GitHub  ·  Packagist
Maintainer: matteoantoci

phpThumb for Laravel 4

This is the phpThumb library wrapped inside a Laravel 4 package.

Installation

Add this package to your composer.json

Add this service provider in /app/config/app.php

    'Matteoantoci\Phpthumb\PhpthumbServiceProvider',

Use

A new route will be created /phpthumb

Use the library as described here

phpThumb Helper

Add this alias in /app/config/app.php to use phpThumb Helper in your templates.

    'phpThumb' => 'Matteoantoci\Phpthumb\PhpthumbHelper'

The helper class consist on a single static function with this parameters:

    get($img, $w = "", $h = "", $crop = true, $params = array())
  • $img -> path of image
  • $w -> max width
  • $h -> max height
  • $crop -> if you want to use zoom-crop feature (true by default)
  • $params -> array of additional parameters. Eg: 'fltr[]=gray'

Related Packages

shishima/laravel-thumbnail

This package is used to create thumbnail images for document files. It supports...

103 1
montesjmm/resize-and-watermark

Resize and Watermark for Laravel resizes and watermarks your pictures easily

202 2
namnv609/l5-fly-thumb

Resize image on the fly for Laravel 5

85 1
intervention/image

PHP Image Processing

235,805,157 14,379
poznet/image

Simple Image procesing for Laravel 5 - wrapper for intervention/image

157 2