2017 © Pedro Peláez
 

craft-plugin craft-asset-source-generator

Craft CMS plugin to create asset volumes when first installed

image

servd/craft-asset-source-generator

Craft CMS plugin to create asset volumes when first installed

  • Wednesday, June 20, 2018
  • by mattgrayisok
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Craft Asset Source Generator plugin for Craft CMS 3.x

Creates configured asset sources when the plugin is first installed, (*1)

Screenshot, (*2)

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 or later., (*3)

Installation

To install the plugin, follow these instructions., (*4)

  1. Open your terminal and go to your Craft project:, (*5)

    cd /path/to/project
  2. Then tell Composer to load the plugin:, (*6)

    composer require servdhost/craft-asset-source-generator
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Craft Asset Source Generator., (*7)

Craft Asset Source Generator Overview

A Craft CMS plugin to create some asset volumes upon installation. Used within Servd's infrastructure., (*8)

Configuring Craft Asset Source Generator

Create a config file at config/craft-asset-source-generator.php with something like the following contents:, (*9)

<?php

return [
    'sources' => [
        [
            'keyId' => 'your-AWS-key',
            'secret' => 'your-AWS-secret',
            'bucket' => 's3-bucket',
            'region' => 's3-region',
            'subfolder' => 'prepended-to-all-asset-keys',
            'expires' => '5 minutes',
            'cfDistributionId' => 'cloudfront-distro-id',
            'name' => 'volume-name',
            'handle' => 'volume-handle',
            'hasUrls' => true,
            'url' => 'https://url-to-your-volume.com'
        ]
    ]
];

You can add multiple volumes, they just need different handles., (*10)

Using Craft Asset Source Generator

Ensure craftcms/aws-s3 is installed prior to installing this plugin., (*11)

Then install this plugin., (*12)

Brought to you by Servd, (*13)

The Versions

20/06 2018

dev-master

9999999-dev

Craft CMS plugin to create asset volumes when first installed

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft craft asset volume generator

20/06 2018

0.1.0

0.1.0.0

Craft CMS plugin to create asset volumes when first installed

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft craft asset volume generator