PHPackages                             shorunke/cloudinary - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. shorunke/cloudinary

ActiveLibrary

shorunke/cloudinary
===================

This Package Helps Easily integrate Cloudinary Api for Easy Use of Files storage

00PHP

Since Apr 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Shorunke999/cloudinary-package)[ Packagist](https://packagist.org/packages/shorunke/cloudinary)[ RSS](/packages/shorunke-cloudinary/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Cloudinary Integration
==============================

[](#laravel-cloudinary-integration)

[![Latest Version on Packagist](https://camo.githubusercontent.com/260461e85576dc827f92ae7dd3a8261b9414985769ed9e8969e5250360198e97/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73686f72756e6b652f636c6f7564696e6172792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shorunke/cloudinary)[![Total Downloads](https://camo.githubusercontent.com/376e5f836a5761157fe95ce3e681b0e10ffcffb37d513dd46a5e0140472c5a87/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73686f72756e6b652f636c6f7564696e6172792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shorunke/cloudinary)

Easily integrate [Cloudinary](https://cloudinary.com) into your Laravel application. This package provides a simple and expressive way to upload, rename, delete, and manage media files on Cloudinary, with full support for Laravel 12.

---

✨ Features
----------

[](#-features)

- Upload images or files to Cloudinary
- Delete files by public ID
- Move/Rename files
- Extract Cloudinary public ID from URL
- Simple configuration and service binding
- Optional facade for global access

---

🚀 Installation
--------------

[](#-installation)

Install the package via Composer:

```
composer require shorunke/cloudinary
```

Then, publish the config and service class:

```
php artisan cloudinary:install
```

🔧 Configuration
---------------

[](#-configuration)

After installation, a config/cloudinary.php file will be published. Add your environment variables to your .env file:

```
    CLOUDINARY_CLOUD_NAME=your-cloud-name
    CLOUDINARY_API_KEY=your-api-key
    CLOUDINARY_API_SECRET=your-api-secret
    CLOUDINARY_SECURE_URL=true
```

🛠️ Usage
--------

[](#️-usage)

Using Dependency Injection

```
    use Shorunke\Cloudinary\CloudinaryService;

    public function store(Request $request, CloudinaryService $cloudinary)
    {
        $result = $cloudinary->upload($request->file('image')->getPathname(), 'uploads');
        return response()->json($result);

        //to get the secure url
        $secure = $result['secure_url'];
    }
```

Using the Facade First, ensure the facade is registered in config/app.php (or via auto-discovery):

```
'aliases' => [
    'Cloudinary' => Shorunke\Cloudinary\Facades\Cloudinary::class,
],
```

Then use it globally:

```
use Cloudinary;

Cloudinary::upload('path/to/file.jpg', 'uploads');
```

📦 Available Methods
-------------------

[](#-available-methods)

```
// Upload a file
upload(string $filePath, string $folder, ?string $publicId = null, array $options = [])

// Delete a file
delete(string $publicId, array $options = [])

// Move/Rename a file
move(string $fromPublicId, string $toPublicId, array $options = [])

// Extract public ID from a full Cloudinary URL
$publicId = extractCloudinaryPublicId(string $url)

$url = $result['secure_url'];
```

📚 Credits
---------

[](#-credits)

Developed by Shorunke Olamilekan Email : Powered by Cloudinary PHP SDK

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ec92c217af528a38f4c956eb2bb95d29b97e2ac805015ff967eb80d25d225d7?d=identicon)[Shorunke999](/maintainers/Shorunke999)

---

Top Contributors

[![Shorunke999](https://avatars.githubusercontent.com/u/134306919?v=4)](https://github.com/Shorunke999 "Shorunke999 (7 commits)")

### Embed Badge

![Health badge](/badges/shorunke-cloudinary/health.svg)

```
[![Health](https://phpackages.com/badges/shorunke-cloudinary/health.svg)](https://phpackages.com/packages/shorunke-cloudinary)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
