{"id":15106843,"url":"https://github.com/jrm2k6/cloudder","last_synced_at":"2025-09-27T05:31:19.133Z","repository":{"id":29943483,"uuid":"33489907","full_name":"jrm2k6/cloudder","owner":"jrm2k6","description":"Cloudinary wrapper for Laravel 5","archived":true,"fork":false,"pushed_at":"2021-02-04T04:54:40.000Z","size":60,"stargazers_count":264,"open_issues_count":5,"forks_count":56,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-01-09T15:06:53.362Z","etag":null,"topics":["cloudinary","image","laravel-4-package","laravel-5-package","lumen"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jrm2k6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-06T15:42:26.000Z","updated_at":"2023-12-15T12:21:30.000Z","dependencies_parsed_at":"2022-09-07T06:13:51.066Z","dependency_job_id":null,"html_url":"https://github.com/jrm2k6/cloudder","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrm2k6%2Fcloudder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrm2k6%2Fcloudder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrm2k6%2Fcloudder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrm2k6%2Fcloudder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jrm2k6","download_url":"https://codeload.github.com/jrm2k6/cloudder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234391378,"owners_count":18824809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudinary","image","laravel-4-package","laravel-5-package","lumen"],"created_at":"2024-09-25T21:02:01.084Z","updated_at":"2025-09-27T05:31:13.850Z","avatar_url":"https://github.com/jrm2k6.png","language":"PHP","readme":"# Cloudder - Cloudinary wrapper for Laravel 5 / Lumen\n\n\n#### This project is not actively maintained. I might be slow to answer, as you can tell by looking at the issues. I have moved to some new projects, not in the PHP ecosystem. You can always reach out to me through my email.\n\n#### If you fork it on publish it as your own, it might be nice to credit the original author at https://github.com/teepluss/laravel4-cloudinary.\n\n[![Build Status](http://img.shields.io/travis/jrm2k6/cloudder/master.svg?style=flat-square)](https://travis-ci.org/jrm2k6/cloudder)\n[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](http://www.opensource.org/licenses/MIT)\n[![Latest Version](http://img.shields.io/packagist/v/jrm2k6/cloudder.svg?style=flat-square)](https://packagist.org/packages/jrm2k6/cloudder)\n[![Total Downloads](https://img.shields.io/packagist/dt/jrm2k6/cloudder.svg?style=flat-square)](https://packagist.org/packages/jrm2k6/cloudder)\n\n\u003e Initially forked from https://github.com/teepluss/laravel4-cloudinary.\n\n\u003e **If there is any feature you would like feel free to open an issue or send me an email!**\n\n## Installation\n\n`composer require jrm2k6/cloudder`\n\nFor people still using Laravel 4.2: `composer require jrm2k6/cloudder:0.1.*` and check the branch l4 for the installation instructions.\n\n\n## Configuration\n\nModify your `.env` file to add the following information from [Cloudinary](http://www.cloudinary.com)\n\n### Required\n\n\n```\nCLOUDINARY_API_KEY=012345679890123\nCLOUDINARY_API_SECRET=foobarfoobarfoob-arfoobarfo\nCLOUDINARY_CLOUD_NAME=foobarcorp\n```\n\n### Optional\n\n```\nCLOUDINARY_BASE_URL\nCLOUDINARY_SECURE_URL\nCLOUDINARY_API_BASE_URL\n```\nLaravel 5.5+ uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.\nIf you don't use auto-discovery follow the next steps:\n\nAdd the following in config/app.php:\n\n```php\n'providers' =\u003e array(\n  JD\\Cloudder\\CloudderServiceProvider::class,\n);\n\n'aliases' =\u003e array(\n  'Cloudder' =\u003e JD\\Cloudder\\Facades\\Cloudder::class,\n);\n```\n\nRun `php artisan vendor:publish --provider=\"JD\\Cloudder\\CloudderServiceProvider\"`\n\n## Usage\n\n### upload()\n\n```php\nCloudder::upload($filename, $publicId, array $options, array $tags);\n```\n\nwith:\n\n* `$filename`: path to the image you want to upload\n* `$publicId`: the id you want your picture to have on Cloudinary, leave it null to have Cloudinary generate a random id.\n* `$options`: options for your uploaded image, check the [Cloudinary documentation](http://cloudinary.com/documentation/php_image_upload#all_upload_options) to know more\n* `$tags`: tags for your image\n\nreturns the `CloudinaryWrapper`.\n\n### uploadVideo()\n\n```php\nCloudder::uploadVideo($filename, $publicId, array $options, array $tags);\n```\n\nwith:\n\n* `$filename`: path to the video you want to upload\n* `$publicId`: the id you want your video to have on Cloudinary, leave it null to have Cloudinary generate a random id.\n* `$options`: options for your uploaded video, check the Cloudinary documentation to know more\n* `$tags`: tags for your image\n\nreturns the `CloudinaryWrapper`.\n\n### getPublicId()\n\n```php\nCloudder::getPublicId()\n```\n\nreturns the `public id` of the last uploaded resource.\n\n### getResult()\n\n```php\nCloudder::getResult()\n```\n\nreturns the result of the last uploaded resource.\n\n### show() + secureShow()\n\n```php\nCloudder::show($publicId, array $options)\nCloudder::secureShow($publicId, array $options)\n```\n\nwith:\n\n* `$publicId`: public id of the resource to display\n* `$options`: options for your uploaded resource, check the Cloudinary documentation to know more\n\nreturns the `url` of the picture on Cloudinary (https url if secureShow is used).\n\n### showPrivateUrl()\n\n```php\nCloudder::showPrivateUrl($publicId, $format, array $options)\n```\n\nwith:\n\n* `$publicId`: public id of the resource to display\n* `$format`: format of the resource your want to display ('png', 'jpg'...)\n* `$options`: options for your uploaded resource, check the Cloudinary documentation to know more\n\nreturns the `private url` of the picture on Cloudinary, expiring by default after an hour.\n\n### rename()\n\n```php\nCloudder::rename($publicId, $toPublicId, array $options)\n```\n\nwith:\n\n* `$publicId`: publicId of the resource to rename\n* `$toPublicId`: new public id of the resource\n* `$options`: options for your uploaded resource, check the cloudinary documentation to know more\n\nrenames the original picture with the `$toPublicId` id parameter.\n\n### destroyImage() + delete()\n\n```php\nCloudder::destroyImage($publicId, array $options)\nCloudder::delete($publicId, array $options)\n```\n\nwith:\n\n* `$publicId`: publicId of the resource to remove\n* `$options`: options for the image to delete, check the cloudinary documentation to know more\n\nremoves image from Cloudinary.\n\n### destroyImages()\n\n```php\nCloudder::destroyImages(array $publicIds, array $options)\n```\n\nwith:\n\n* `$publicIds`: array of ids, identifying the pictures to remove\n* `$options`: options for the images to delete, check the cloudinary documentation to know more\n\nremoves images from Cloudinary.\n\n### addTag()\n\n```php\nCloudder::addTag($tag, $publicIds, array $options)\n```\n\nwith:\n\n* `$tag`: tag to apply\n* `$publicIds`: images to apply tag to\n* `$options`: options for your uploaded resource, check the cloudinary documentation to know more\n\n### removeTag()\n\n```php\nCloudder::removeTag($tag, $publicIds, array $options)\n```\n\nwith:\n\n* `$tag`: tag to remove\n* `$publicIds`: images to remove tag from\n* `$options`: options for your uploaded image, check the Cloudinary documentation to know more\n\n### createArchive()\n\n```php\nCloudder::createArchive(array $options, $archiveName, $mode)\n```\n\nwith:\n\n* `$options`: options for your archive, like name, tag/prefix/public ids to select images\n* `$archiveName`: name you want to give to your archive\n* `$mode`: 'create' or 'download' ('create' will create an archive and returns a JSON response with the properties of the archive, 'download' will return the zip file for download)\n\ncreates a zip file on Cloudinary.\n\n### downloadArchiveUrl()\n\n```php\nCloudder::downloadArchiveUrl(array $options, $archiveName)\n```\n\nwith:\n\n* `$options`: options for your archive, like name, tag/prefix/public ids to select images\n* `$archiveName`: name you want to give to your archive\n\nreturns a `download url` for the newly created archive on Cloudinary.\n\n## Running tests\n\n`phpunit`\n\n## Example\n\nYou can find a working example in the repo [cloudder-l5-example](https://github.com/jrm2k6/cloudder-l5-sample-project)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrm2k6%2Fcloudder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjrm2k6%2Fcloudder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrm2k6%2Fcloudder/lists"}