PHPackages                             kalamu/media-manager - 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. kalamu/media-manager

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

kalamu/media-manager
====================

Javascript library for media managment on top of a RESTfull API

0.1(6y ago)09[18 PRs](https://github.com/kalamu/media-manager/pulls)MITJavaScript

Since Jun 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/kalamu/media-manager)[ Packagist](https://packagist.org/packages/kalamu/media-manager)[ RSS](/packages/kalamu-media-manager/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (20)Used By (0)

Kalamu / Media Manager
======================

[](#kalamu--media-manager)

This library is a JavaScript media manager based on top of a RESTFull API. The library include only the client side library.

The goal is to provide a simple interface for :

- consulting medias
- uploadind/downloading files
- making simple changes on medias
- selecting files (in a form context)

**For the moment, the library only work for images, but we plan to manage more types of files shortly**

KalamuMediaManager
==================

[](#kalamumediamanager)

Constructor
-----------

[](#constructor)

```
var manager = new KalamuMediaManager(config);
```

Config is a object with the following properties.

ParameterRequired ?Description`lang`optionalDefine the interface language. If not set, `navigator.language` is used. Accepted values are : en, fr`dropZone`requiredDOM Element to add files (by drag'n drop or file input)`displayZone`requiredDOM Element to display the file list`infoZone`requiredDOM Element that must be a bootstrap modal to display file informations`apiEntryPoint`requiredURL address of the RESTfull API`selectable`optionalDefine if the files can be selected. Accepted values are : none, single, multiple`onStart`optionalFunction triggered at startup, once the file list has been fetched from the API`onSelectionChanged`optionalFunction triggered when the user change the file selectionMethods
-------

[](#methods)

### getImages()

[](#getimages)

Return the list of image objects that are on the manager.

Exemple :

```
console.log(manager.getImages());
// > Array(4) [ {...}, {...}, {...}, {...} ]

// get the uniq identifier of an image
console.log(manager.getImages()[0].config.identifier);
// > "0be916c4219e1a26c..."
```

### getSelection()

[](#getselection)

Return an array containing the identifier of each image selected.

Exemple :

```
console.log(manager.getSelection());
// > Array(2) [ "0be916c4219e1a26c...", "15b8669705ab106b00bfc..." ]
```

### setSelection(identifiers)

[](#setselectionidentifiers)

This method allow to set which files are selected.

Exemple :

```
console.log(manager.getSelection());
// > Array(2) [ "0be916c4219e1a26c...", "15b8669705ab106b00bfc..." ]

manager.setSelection(["0be916c4219e1a26c..."]); // change the selection

console.log(manager.getSelection());
// > Array(1) [ "0be916c4219e1a26c..." ]
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

Unknown

Total

1

Last Release

2525d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b12ed423a03cfb7eb41e4a0b5c1182ab30271cfc4f3f3e5962bb73873aca37f?d=identicon)[nykopol](/maintainers/nykopol)

---

Top Contributors

[![nykopol](https://avatars.githubusercontent.com/u/2706685?v=4)](https://github.com/nykopol "nykopol (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/kalamu-media-manager/health.svg)

```
[![Health](https://phpackages.com/badges/kalamu-media-manager/health.svg)](https://phpackages.com/packages/kalamu-media-manager)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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