Code Monkey home page Code Monkey logo

laravel-phumbor's Introduction

Phumbor for Laravel 4

This Laravel package adds support for the 99designs PHP interface to the globocom Thumbor thumbnail service.

Installation

Simply require the package in your composer.json file:

"ceejayoz/laravel-phumbor": "dev-master"

Run composer install to download the package and have the autoloader updated.

Once installed, register the service provider with your Laravel application. Update the providers section of app/config/app.php:

'providers' = array(
	// existing providers
	'Ceejayoz\LaravelPhumbor\LaravelPhumborServiceProvider',
);

and register the facade in the aliases section:

'aliases' => array(
	// existing aliases
	'Phumbor' => 'Ceejayoz\LaravelPhumbor\Facades\Phumbor',
);

Now, publish the package's config file:

php artisan config:publish ceejayoz/laravel-phumbor

which will publish the default configuration file to app/config/packages/ceejayoz/laravel-phumbor/config.php.

You should modify this file to reflect your Thumbor installation's URL and secret key.

Usage

The Phumbor facade exposes the API from the 99designs PHP interface.

For example:

Phumbor::url('http://images.example.com/llamas.jpg')
    ->fitIn(640, 480)
	->addFilter('fill', 'green');

License

Licensed under the MIT license. See https://github.com/ceejayoz/laravel-phumbor/blob/master/LICENSE

laravel-phumbor's People

Contributors

ceejayoz avatar lohiaad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

laravel-phumbor's Issues

Composer fails on dependency

composer fails with below message

  • ceejayoz/laravel-phumbor dev-master requires 99designs/phumbor ^1.2 -> no matching package found.
    • Installation request for ceejayoz/laravel-phumbor dev-master -> satisfiable by ceejayoz/laravel-phumbor[dev-master].

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.