2017 © Pedro Peláez
 

library cloudinary

Cloudinary API wrapper for Laravel 4

image

teepluss/cloudinary

Cloudinary API wrapper for Laravel 4

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 18 Forks
  • 5 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

Cloudinary API Wrapper

Cloudinary streamlines your entire image management pipeline - upload, storage, administration, manipulation and delivery., (*1)

Installation

To get the lastest version of Theme simply require it in your composer.json file., (*2)

"teepluss/cloudinary": "dev-master"

You'll then need to run composer install to download it and have the autoloader updated., (*3)

Once Theme is installed you need to register the service provider with the application. Open up app/config/app.php and find the providers key., (*4)

'providers' => array(

    'Teepluss\Cloudinary\CloudinaryServiceProvider'

)

Theme also ships with a facade which provides the static syntax for creating collections. You can register the facade in the aliases key of your app/config/app.php file., (*5)

'aliases' => array(

    'Cloudy' => 'Teepluss\Cloudinary\Facades\Cloudy'

)

Publish config using artisan CLI., (*6)

php artisan config:publish teepluss/cloudinary

Usage

After published cloudinary config you need to set up api detail, such as key, secrey, url, etc., (*7)

This wrapper api provide simple methods to upload, rename, delete, tag manage and full features from original cloudinary class methods., (*8)

$tags = array(
    'tag_a',
    'tag_b',
    'tag_c'
);

Cloudy::upload($_FILES['tmp_name'], 'custom_public_name', $tags);

//Cloudy::upload('/path/to/local/image', 'custom_public_name', $tags);

//Cloudy::upload('http://domain.com/remote.jpg', 'custom_public_name', $tags);

Display an image., (*9)

Cloudy::show('custom_public_name', array('width' => 150, 'height' => 150, 'crop' => 'fit', 'radius' => 20));

More document from cloudinary.com, (*10)

Rename file, Delete file., (*11)

Cloudy::rename('from_public_id', 'to_public_id');

Cloudy::destroy('public_id');

Manage with tag., (*12)

Cloudy::addTag('tag_d', array('public_id_1', 'public_id_2'));

Cloudy::removeTag('tag_d', array('public_id_1', 'public_id_2'));

Cloudy::replaceTag('tag_e', array('public_id_1', 'public_id_2'));

You can use original library from cloudinary also., (*13)

// Get cloudinary.
$cloudinary = Cloudy::getCloudinary();

// Get cloudinary uploader
$uploader = Cloudy::getUploader();

To see more detail visit @ https://github.com/cloudinary/cloudinary_php, (*14)

Support or Contact

If you have some problem, Contact teepluss@gmail.com, (*15)

Support via PayPal, (*16)

The Versions

15/08 2014

dev-master

9999999-dev https://github.com/teepluss/laravel4-cloudinary

Cloudinary API wrapper for Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api upload image laravel4 cloudinary

15/08 2014

v0.1

0.1.0.0 https://github.com/teepluss/laravel4-cloudinary

Cloudinary API wrapper for Laravel 4

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel api upload image laravel4 cloudinary