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

ActiveSymfony-bundle[File &amp; Storage](/categories/file-storage)

avtonom/media-storage-client-bundle
===================================

Symfony media client bundle for uploading (sending) files and images to a remote server deployed on SonataMediaBundle

v1.4.0(5y ago)2313MITPHPPHP &gt;=5.3.2

Since Oct 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Avtonom/media-storage-client-bundle)[ Packagist](https://packagist.org/packages/avtonom/media-storage-client-bundle)[ Docs](https://github.com/Avtonom/media-storage-client-bundle)[ RSS](/packages/avtonom-media-storage-client-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (12)Used By (0)

Сlient for API SonataMediaBundle
================================

[](#сlient-for-api-sonatamediabundle)

Symfony media client bundle for uploading (sending) files and images to a remote server deployed on SonataMediaBundle

Page bundle:

Run the following in your project root, assuming you have composer set up for your project

```
composer.phar require avtonom/media-storage-client-bundle ~1.2
```

Switching `~1.2` for the most recent tag.

Add the bundle to app/AppKernel.php

```
$bundles(
    ...
    new Sensio\Bundle\BuzzBundle\SensioBuzzBundle(),
    new Avtonom\MediaStorageClientBundle\AvtonomMediaStorageClientBundle(),
    ...
);
```

Configuration options (parameters.yaml):

```
parameters:
    avtonom.media_storage_client:
        clients:
            client_name_url:
                base_url: http://demo.com
                add_media_url: /app_dev.php/api/providers/sonata.media.provider.url/media
            client_name_url:
                base_url: http://demo.com
                add_media_url: /app_dev.php/api/providers/sonata.media.provider.file/media
        urls:
            base_url: http://demo.com
            get_media_by_reference_full_url: /app_dev.php/api/media/referencefull
        listener:
            interfaces: ['Bundle\Model\EntityInterface1', 'Bundle\Model\EntityInterface2']
            change_field: my_change_field
            ignored_domains: ['s.dev.demo.com', 's.prod.demo.com']
            client: client_name_url
            context: context
        logging_level: 100
```

\[Optionally\] Configuration bower (\\web\\bower.json) to file upload:

```

"blueimp-file-upload-node": "*"

```

\[Optionally\] File js to file upload (for example: \\src\\Bundle\\Resources\\views\\standard\_layout.html.twig): This example uses a library of x-editable ().

```
{% block javascripts %}
    {{ parent() }}
    {% javascripts
        '@AvtonomMediaStorageClientBundle/Resources/public/js/actions.js'
    %}

    {% endjavascripts %}
{% endblock %}
```

### Use alternative number 1: block to add a reference to the file

[](#use-alternative-number-1-block-to-add-a-reference-to-the-file)

```

    {% if mediaReferenceFull is not empty %}
        {% set media = media_get(mediaReferenceFull) %}
        {% if media is ProxyMediaInterface %}
            {{ media.name }}
        {% else %}
            ERROR: file not found
        {% endif %}
    {% endif %}
    &nbsp;

```

Use the value of the parameters.yaml for the listener:

```
services:
    avtonom.media_storage_client.listener:
        class: Avtonom\MediaStorageClientBundle\EventListener\ObjectAddFileListener
        ...
        tags:
            - { name: doctrine.event_listener, event: prePersist, method: run }
            - { name: doctrine.event_listener, event: preUpdate, method: run }
```

### Use alternative number 1: button to upload the file

[](#use-alternative-number-1-button-to-upload-the-file)

```

        {{ mediaReferenceFull is empty ? 'Add' : 'Update' }}
        &nbsp;

```

Processing in the controller:

```
public function updateAction(Request $request)
{
    /** @var UploadedFile $file */
    $file = $request->files->get('file');
    if($file instanceof UploadedFile){

        $proxyMedia = $this->get('avtonom.media_storage_client.manager')->sendFile($file, $clientName, $context);

        return new JsonResponse([
            'media' => $proxyMedia->toArray(),
        ]);
    }
}

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~196 days

Recently: every ~488 days

Total

11

Last Release

1904d ago

Major Versions

v0.1.0 → v1.1.02015-10-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/851a2d4f8d02604c04bd2c4331a901e4fc92ed7ec1371cbceafb48c2495efc8c?d=identicon)[avtonomspb](/maintainers/avtonomspb)

---

Top Contributors

[![Avtonom](https://avatars.githubusercontent.com/u/988367?v=4)](https://github.com/Avtonom "Avtonom (1 commits)")

---

Tags

bundleSymfony2storageSonataMediaBundleSonataMediaBundleClientMediaStorageMediaStorageClient

### Embed Badge

![Health badge](/badges/avtonom-media-storage-client-bundle/health.svg)

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

###  Alternatives

[league/flysystem-bundle

Symfony bundle integrating Flysystem into Symfony applications

40129.5M87](/packages/league-flysystem-bundle)[avtonom/semaphore-bundle

A generic locking Symfony bundle for PHP, that uses named locks for semaphore acquire and release, to guarantee atomicity

122.8k](/packages/avtonom-semaphore-bundle)

PHPackages © 2026

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