Download the PHP package acb-studio/kirby-cloudinary-sync without Composer

On this page you can find all versions of the php package acb-studio/kirby-cloudinary-sync. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package kirby-cloudinary-sync

Kirby CMS → Cloudinary sync plugin

License: MIT Kirby-4-compatible Kirby-5-compatible

What is this?

This Kirby plugin allows you to automatically push your media assets to Cloudinary when you upload them in Kirby. Instead of serving the assets from your Kirby server, they will be served by Cloudinary (the files' url will automatically point to Cloudinary).

Who are we?

We (acb.studio) are your partner for sustainable digital products and products. We are a Certified Kirby Partner.

First steps

Step 1: Install the plugin

Step 2: Get Cloudinary API credentials

Head over to https://console.cloudinary.com/settings/api-keys and generate a new API key.

You will need three things to use this plugin:

Step 3: Configure the plugin

Open your Kirby site/config/config.php and add the configuration to it. See below for examples.

Step 3 - Example A: Minimal configuration

In this example, you just want to sync your image files with Cloudinary. A copy of your assets should be kept on your local machine as a backup. It is most likely a bad idea though to hard-code your Cloudinary API secrets in your config.php, so this is mainly suitable for local testing - see below for a more comprehensive configuration using environment variables.

Add this to your site/config/config.php:

Step 3 - Example B: Comprehensive configuration

Step 4: Add file blueprint

To have more control over your assets, you may want to add a Cloudinary file blueprint. Have a look at cloudinary-file.yml as an example how such a blueprint can look like. You can either copy-paste the fields into your own file blueprint or you can use the automatically registered cloudinary blueprint for your files (in your files field, set template: cloudinary). Some of the fields make use of the Kirby k3-whenquery plugin. It is optional to add that plugin to your project, it just hides fields that are not relevant for more convenience.

Step 5: Previously uploaded files

Files added to Kirby prior to installing the plugin are not automatically synced to Cloudinary. They can be manually pushed by opening the file in the panel (after doing step 4 first so that the blueprint contains the action) and then clicking the corresponding button to push the file, or by opening the "Cloudinary Admin" area on the left side (if enabled) and selecting "Push all files to Cloudinary" (depending on the number and size of assets this can take a long time and even fail based on the PHP timeout settings - in that case, you can always click the button again because it will only push files that were not already pushed, yet).

Contribute

Feedback and contributions are welcome!

For commit messages we're following the gitmoji guide. 😃 Below you can find an example commit message for fixing a bug:

🐛 fix eager transformations

Please post all bug reports in our issue tracker.


All versions of kirby-cloudinary-sync with dependencies

PHP Build Version
Package Version
Requires getkirby/composer-installer Version ^1.1
cloudinary/cloudinary_php Version ^3.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package acb-studio/kirby-cloudinary-sync contains the following files

Loading the files please wait ....