PHPackages                             arsthanea/remote-media-bundle - 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. arsthanea/remote-media-bundle

ActiveLibrary

arsthanea/remote-media-bundle
=============================

3.0(5y ago)29.6k1[1 PRs](https://github.com/syzygypl/remote-media-bundle/pulls)MITPHP

Since Feb 26Pushed 2y ago3 watchersCompare

[ Source](https://github.com/syzygypl/remote-media-bundle)[ Packagist](https://packagist.org/packages/arsthanea/remote-media-bundle)[ RSS](/packages/arsthanea-remote-media-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (2)Versions (14)Used By (0)

Remote Media Bundle for Kunstmaan
=================================

[](#remote-media-bundle-for-kunstmaan)

This bundle enables you to store your assets in S3 bucket instead of local filesystem

Installation
------------

[](#installation)

`composer require arsthanea/remote-media-bundle`

Configuration
-------------

[](#configuration)

Add this bundle to your kernel after the `KunstmaanMediaBundle`:

```
…
  $bundles = [
    //
      new Kunstmaan\MediaBundle\KunstmaanMediaBundle(),
      new ArsThanea\RemoteMediaBundle\RemoteMediaBundle(),
    //
  ];
…

```

Setup S3 details in `config.yml`:

```
remote_media:
  cdn:
    # The public URL to your bucket. You may use a CDN for instance
    # If not sure leave null
    #
    media_url: https://a-cdn-for-my-bucket.cloudflare.net

    # cached thumbnails can be stored in a prefixed path.
    # the default value is the env name (i.e. "dev/") or no prefix on production
    #
    # cache_prefix: dev

    # To speed up cache resolution, provide a doctrine_cache provider:
    #
    # cache_provider: liip_imagine

    s3:
      bucket: acme-bundle

      # this is optional and defaults to eu-west-1
      #
      # region: eu-west-1

      # please provide AWS access key and secret for this bucket:
      #
      access_key: %aws_access_key%
      access_secret: %aws_access_secret%
```

You need to tweak the `liip_imagine` configuration a bit. Locate the default settings in `config.yml` or other place and set the `cache` and `data_provider` keys to `remote_media` value:

```
liip_imagine:
  cache: remote_media
  data_loader: remote_media
```

### Setup cache provider

[](#setup-cache-provider)

Use [`DoctrineCacheBundle`](http://docs.doctrine-project.org/projects/doctrine-common/en/latest/reference/caching.html) (already used by Kunstmaan Bundles) to create a cache provider:

```
doctrine_cache:
  providers:
    liip_imagine:
      type: redis
```

Usage
-----

[](#usage)

Use `media_url` twig function to replace the media path with a CDN host. If you don’t need the CDN please keep in mind that `Media::getUrl()` now returns a full URL instead of just a relative path.

```

```

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 63.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~173 days

Total

10

Last Release

2164d ago

Major Versions

1.x-dev → 2.0-RC.12018-02-06

2.0.3 → 3.02020-06-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/8572223899390b494d1282b615009bc2eea5ef1cd6bfc22f6e6b175034dadfe0?d=identicon)[mlebkowski](/maintainers/mlebkowski)

![](https://www.gravatar.com/avatar/94038957ef475f1608e022eadb71293b64df0949b2c9bfa2366e4bfb63d528ad?d=identicon)[Frost\_F0x](/maintainers/Frost_F0x)

---

Top Contributors

[![mlebkowski](https://avatars.githubusercontent.com/u/848731?v=4)](https://github.com/mlebkowski "mlebkowski (7 commits)")[![FrostF0X](https://avatars.githubusercontent.com/u/27864510?v=4)](https://github.com/FrostF0X "FrostF0X (2 commits)")[![KubaRocks](https://avatars.githubusercontent.com/u/1084433?v=4)](https://github.com/KubaRocks "KubaRocks (2 commits)")

### Embed Badge

![Health badge](/badges/arsthanea-remote-media-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/arsthanea-remote-media-bundle/health.svg)](https://phpackages.com/packages/arsthanea-remote-media-bundle)
```

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M782](/packages/league-flysystem-aws-s3-v3)[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k35.6M74](/packages/aws-aws-sdk-php-laravel)[humanmade/s3-uploads

WordPress plugin to store uploads on S3

2.1k2.4M8](/packages/humanmade-s3-uploads)[bref/laravel-bridge

An advanced Laravel integration for Bref, including Octane support.

3384.1M10](/packages/bref-laravel-bridge)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)[laravel-notification-channels/aws-sns

Amazon Simple Notification Service (AWS SNS) notification channel for Laravel.

541.1M2](/packages/laravel-notification-channels-aws-sns)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
