Delicious Brains

Documentation

Installing via Composer

We have a comprehensive doc for installing our plugins using Composer here.

The specific composer.json for the WP Offload S3 plugins (with the same format for addons as we release them) would look like this:

{
    "name": "deliciousbrains/composer-test.dev",
    "description": "WPOS3 Plugins for WordPress site",
    "authors": [
        {
            "name": "Delicious Brains",
            "email": "nom@deliciousbrains.com"
        }
    ],
    "require": {
        "deliciousbrains/wp-offload-s3-pro": "*",
        "deliciousbrains/wp-offload-s3-assets": "*"
    },
    "repositories": [
        {
            "type": "package",
            "package": {
                "name": "deliciousbrains/wp-offload-s3-pro",
                "type": "wordpress-plugin",
                "version": "1.0.1",
                "dist": {
                    "type": "zip",
                    "url": "https://deliciousbrains.com/dl/wp-offload-s3-pro-latest.zip?licence_key=<LICENSE_KEY>&site_url=composer-test.dev"
                },
                "require": {
                    "composer/installers": "^1.0"
                }
            }
        },
        {
            "type": "package",
            "package": {
                "name": "deliciousbrains/wp-offload-s3-assets",
                "type": "wordpress-plugin",
                "version": "1.0.1",
                "dist": {
                    "type": "zip",
                    "url": "https://deliciousbrains.com/dl/wp-offload-s3-assets-latest.zip?licence_key=<LICENSE_KEY>&site_url=composer-test.dev"
                },
                "require": {
                    "composer/installers": "^1.0"
                }
            }
        }
    ],
    "extra": {
        "installer-paths": {
            "wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
            "wp-content/themes/{$name}/": ["type:wordpress-theme"]
        }
    }
}