2017 © Pedro Peláez
 

library phpthumb

Easy thumbnailing in Laravel 4

image

matteoantoci/phpthumb

Easy thumbnailing in Laravel 4

  • Friday, December 20, 2013
  • by matteoantoci
  • Repository
  • 0 Watchers
  • 0 Stars
  • 114 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

phpThumb for Laravel 4

This is the phpThumb library wrapped inside a Laravel 4 package., (*1)

Installation

Add this package to your composer.json, (*2)

Add this service provider in /app/config/app.php, (*3)

    'Matteoantoci\Phpthumb\PhpthumbServiceProvider',

Use

A new route will be created /phpthumb, (*4)

Use the library as described here, (*5)

phpThumb Helper

Add this alias in /app/config/app.php to use phpThumb Helper in your templates., (*6)

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

The helper class consist on a single static function with this parameters:, (*7)

    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'

The Versions

20/12 2013

dev-master

9999999-dev

Easy thumbnailing in Laravel 4

  Sources   Download

The Requires

 

by Matteo Antoci

laravel thumbnail phpthumb yalb