2017 © Pedro Peláez
 

library timthumb

An image proxy for Laravel

image

spescina/timthumb

An image proxy for Laravel

  • Saturday, April 12, 2014
  • by simonpex
  • Repository
  • 1 Watchers
  • 6 Stars
  • 4,901 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

This project is not under development anymore. Check spescina/imgproxy instead

I think that this feature has to be left outside the framework. I don't like that Laravel has to be booted upon each image request., (*1)

Timthumb

An image proxy for Laravel, (*2)

Installation

To install Timthumb as a Composer package to be used with Laravel 4, simply add this to your composer.json:, (*3)

"spescina/timthumb": "1.0.*"

and run composer update., (*4)

Once it's installed, you have to register the service provider. In app/config/app.php add the following line of code to the providers array:, (*5)

'Spescina\Timthumb\TimthumbServiceProvider'

If you want in app/config/app.php add the following line of code to the alias array, (*6)

'Timthumb' => 'Spescina\Timthumb\Facades\Timthumb'

Then, publish the config files with php artisan config:publish spescina/timthumb., (*7)

Then, publish the asset files with php artisan asset:publish spescina/timthumb., (*8)

Usage

Generate the image link with the following line of code, (*9)

$url = Timthumb::link('path/to/image.jpg',width,height)

Set 0 width or 0 height to let Timthumb mantain the original image ratio, (*10)

The Versions

12/04 2014

dev-master

9999999-dev

An image proxy for Laravel

  Sources   Download

MIT

The Requires

 

by Simone Pescina

laravel image proxy crop resizer

28/01 2014

dev-develop

dev-develop

An image proxy for Laravel

  Sources   Download

MIT

The Requires

 

by Simone Pescina

laravel image proxy crop resizer

28/01 2014

1.0.0

1.0.0.0

An image proxy for Laravel

  Sources   Download

MIT

The Requires

 

by Simone Pescina

laravel image proxy crop resizer