PHPackages                             frosh/platform-bunnycdn-media-storage - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. frosh/platform-bunnycdn-media-storage

AbandonedArchivedShopware-platform-plugin[File &amp; Storage](/categories/file-storage)

frosh/platform-bunnycdn-media-storage
=====================================

This plugins allows you to use BunnyCdn as adapter for media

3.4.1(1y ago)927.1k↓43.5%11[1 issues](https://github.com/FriendsOfShopware/FroshPlatformBunnycdnMediaStorage/issues)[1 PRs](https://github.com/FriendsOfShopware/FroshPlatformBunnycdnMediaStorage/pulls)mitPHPCI failing

Since Dec 23Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/FriendsOfShopware/FroshPlatformBunnycdnMediaStorage)[ Packagist](https://packagist.org/packages/frosh/platform-bunnycdn-media-storage)[ RSS](/packages/frosh-platform-bunnycdn-media-storage/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (49)Used By (0)

⚠️ **WARNING**
==============

[](#️-warning)

After experiencing increasing problems with bunny.net, we have decided to no longer actively recommend or use this service. It doesn't seem to be reliable or trustworthy.

BunnyCDN Adapter for Shopware 6
===============================

[](#bunnycdn-adapter-for-shopware-6)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md) [![Shopware Store](https://camo.githubusercontent.com/21d6d3f095a966e63d59f917e50a6b8296d6dd7bc12c90d74e345bff0df49f6b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73686f70776172652d73746f72652d626c75652e7376673f7374796c653d666c61742d737175617265)](https://store.shopware.com/en/frosh48851065217f/bunnycdn-media-storage-plugin-v3.html)

The BunnyCDN adapter allows you to manage your media files in shopware on a bunnyCDN-Storage.

Install
-------

[](#install)

### By composer

[](#by-composer)

```
composer require frosh/platform-bunnycdn-media-storage

```

### By zip

[](#by-zip)

download latest release and upload into admin:

Usage
-----

[](#usage)

- Upload existing media (optional)

    - by SCP from shell:
        - log via SSH into you webspace and go into your shopware folder
        - run following commands (Replace STORAGEZONENAME) and confirm with the FTP-Password of your storage-zone ```
            scp -r ./public/media STORAGEZONENAME@storage.bunnycdn.com:/
            scp -r ./public/thumbnail STORAGEZONENAME@storage.bunnycdn.com:/

            ```
    - Manual by FTP-Client: [see docs at BunnyCDN](https://support.bunnycdn.com/hc/en-us/articles/115003780169-How-to-upload-and-access-files-from-your-Storage-Zone).
- Install and activate the plugin.
- Configure the filesystems in your `config/packages/shopware.yml`. Check the [Shopware documentation](https://developer.shopware.com/docs/guides/hosting/infrastructure/filesystem.html) for additional information.

    - Possible configurations for filesystem type `bunnycdn`:
        - `endpoint`: The endpoint of your storage zone
        - `apiKey`: The FTP Password of your storage zone
        - `storageName`: The name of your storage zone
        - `replicationRoot` (optional): Setting this path will write files also into known local folders. This negates the advantage of saving locally storage. This needs to be an absolute path.
        - `root` (optional): The root/subfolder within your storage zone.
        - `useGarbage` (optional): When set to `true`, deleted, renamed and overwritten files are also saved to a folder named `garbage/[currentDate]/`.
        - `neverDelete` (optional): When set to `true`, deleting files will not use garbage option, too. Attention: This will result in more storage usage and orphaned files in storage.
        - Example with filesystems `public` and `sitemap` saved into `bunnycdn`:

            ```
            shopware:
              cdn:
                  url: "https://my-really-cool-company.b-cdn.net"
              filesystem:
                public: &bunnycdn
                  type: "bunnycdn"
                  url: "https://my-really-cool-company.b-cdn.net"
                  config:
                    endpoint: "https://storage.bunnycdn.com"
                    apiKey: "secret-ftp-password"
                    storageName: "my-really-cool-company"
                    useGarbage: true
                sitemap:
