PHPackages                             tfd/statamic-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. [Image &amp; Media](/categories/media)
4. /
5. tfd/statamic-cloudinary

ActiveLibrary[Image &amp; Media](/categories/media)

tfd/statamic-cloudinary
=======================

v1.5.0(3mo ago)73.9k↓45%2MITPHPCI passing

Since Oct 22Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/21stdigital/statamic-cloudinary)[ Packagist](https://packagist.org/packages/tfd/statamic-cloudinary)[ RSS](/packages/tfd-statamic-cloudinary/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (16)Versions (29)Used By (0)

Cloudinary
==========

[](#cloudinary)

> Cloudinary is a Statamic addon that allows you to use [Cloudinary](https://cloudinary.com) to deliver your assets.

Features
--------

[](#features)

This addon allows you to:

- leverage the transformation and delivery power of Cloudinary
- use images and videos with the same tag patterns
- rely on Cloudinary auto-upload mapping so media can be delivered from Cloudinary after the first request

Requirements
------------

[](#requirements)

- Statamic `^5.73.11` or `^6.4` (same constraint as this package; PHP and Laravel versions follow your Statamic project)

How to Install
--------------

[](#how-to-install)

Run the following command from your project root:

```
composer require tfd/statamic-cloudinary
```

Supported Statamic versions: `5.73.11+` and `6.6.2+`.

How to Use
----------

[](#how-to-use)

### 1. Create a Cloudinary Account

[](#1-create-a-cloudinary-account)

Go to  and create a free account.
It is recommended to create a new folder inside Cloudinary's Media Library that hosts all the media of your website.

Go to `Settings > Upload > Auto upload mapping` and fill out

- Folder: Your newly create folder
- URL prefix: Your website's URL, including a **trailing slash**

Grab the following information from your cloudinary Dashboard:

- Cloud name
- API Environment variable

### 2. Publish the cloudinary configuration file

[](#2-publish-the-cloudinary-configuration-file)

Run the following command from your project root:

```
php artisan vendor:publish --tag="cloudinary-config"
```

This will create a `cloudinary.php` file inside `config/statamic`.

### 3. Setup Cloudinary variables

[](#3-setup-cloudinary-variables)

Enter at least the following data in `config/statamic/cloudinary.php` or use your project's `.env` file.
The `auto_mapping_folder` is the folder you've created during the first step.
The `url` is the API Environment variable you've copied from the first step.

```
