mrprompt / silex-cloudinary
Silex Cloudinary Provider
dev-master
2016-10-22 15:46 UTC
Requires
- php: >=7.0
- ext-curl: *
- ext-json: *
- cloudinary/cloudinary_php: dev-master
Requires (Dev)
- codeclimate/php-test-reporter: dev-master
- mockery/mockery: dev-master@dev
- phpunit/phpunit: ^5.1
- silex/silex: ~1.3
- symfony/browser-kit: ~2.5
- symfony/filesystem: ~2.5
- symfony/http-kernel: ~2.5
This package is auto-updated.
Last update: 2024-12-21 06:55:48 UTC
README
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