2017 © Pedro Peláez
 

library cloudinary-wrapper

A Simple Cloudinary Wrapper for Laravel ^5.2

image

diegofelix/cloudinary-wrapper

A Simple Cloudinary Wrapper for Laravel ^5.2

  • Thursday, July 7, 2016
  • by diegofelix
  • Repository
  • 1 Watchers
  • 2 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Cloudinary Wrapper

CloudinaryWrapper is a package for Laravel ^5.2 that provides simple wrapper for Cloudinary., (*1)

What is Cloudinary? See cloudinary.com., (*2)

Installation

Step 1: Composer

From the command line, run:, (*3)

composer require diegofelix/cloudinary-wrapper

Step 2: Service Provider

For your Laravel app, open config/app.php and, within the providers array, append:, (*4)

DiegoFelix\CloudinaryWrapper\CloudinaryWrapperServiceProvider::class,

This will bootstrap the package into Laravel., (*5)

Step 3: .env

For this package works, you must create three .env variables in your .env file., (*6)

CLOUDINARY_NAME=appname
CLOUDINARY_KEY=yourkey
CLOUDINARY_SECRET:yoursecret

Usage

The Basics

Now that the package was installed, you can use any of the methods that cloudinary provides as well some of my wrappers., (*7)

Have a look at Cloudinary documentation., (*8)

CloudinaryWrapper::upload("/home/my_image.jpg", $options);
CloudinaryWrapper::show("my_image.jpg", $options);

To access the original Cloudinary methods you can access using the following methods:, (*9)

CloudinaryWrapper::getCloudinary();
CloudinaryWrapper::getUploader();

They will give you the main instances for Cloudinary., (*10)

Tests and Contribute

This simple package has no tests, so if you want to help with testing and cover other methods of cloudinary I appreciate it!, (*11)

The Versions

07/07 2016

dev-master

9999999-dev https://github.com/diegofelix/cloudinary-wrapper

A Simple Cloudinary Wrapper for Laravel ^5.2

  Sources   Download

MIT

The Requires

 

by Diego Felix

laravel upload image laravel5 cloudinary