mrprompt/silex-cloudinary

Silex Cloudinary Provider

dev-master 2016-10-22 15:46 UTC

This package is auto-updated.

Last update: 2024-10-21 06:35:21 UTC


README

Build Status Code Climate Test Coverage Issue Count

A service provider to Cloudinary API Client.

Install

composer require mrprompt/silex-cloudinary

Usage

use SilexFriends\Cloudinary\Cloudinary as CloudinaryServiceProvider;

$app->register(
    new CloudinaryServiceProvider(
        $cloud_name,
        $api_key,
        $api_secret
    )
);

$file = $app['request']->files->get('file');
$upload = $app['cloudinary.uploader']($file);

print_r($upload);

License

MIT