PHPackages                             nattreid/gallery - 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. nattreid/gallery

ActiveLibrary

nattreid/gallery
================

Gallery for Nette Framework

2.4.10(3y ago)14471MITJavaScriptPHP &gt;= 7.1

Since Jun 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/nattreid/gallery)[ Packagist](https://packagist.org/packages/nattreid/gallery)[ RSS](/packages/nattreid-gallery/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (10)Versions (43)Used By (1)

Galerie pro Nette Framework
===========================

[](#galerie-pro-nette-framework)

Nastavení v **config.neon**

```
extensions:
    gallery: NAttreid\Gallery\DI\GalleryExtension

gallery:
    maxFileSize: 5 #MB
    maxFiles: 50
```

### Načtení továrny

[](#načtení-továrny)

```
/** @var \NAttreid\Gallery\Control\IGalleryFactory @inject */
public $galleryFactory;
```

### Použítí s databází

[](#použítí-s-databází)

```
function createComponentGalleryDB() {
    $model = $this->db->table('example');

    $gallery = $this->galleryFactory->create();
    $gallery->setStorage($model);
    $gallery->setNamespace('example/class');
    $gallery->setForeignKey('foreignKey', 5);
    return $gallery;
}
```

### Použití se session

[](#použití-se-session)

```
function createComponentGallerySession() {
    $session = $this->getSession('example/class');

    $gallery = $this->galleryFactory->create();
    $gallery->setStorage($session, 'nameOfVariableInSession');
    $gallery->setNamespace('example/class');
    return $gallery;
}
```

### Použití s cms konfigurátorem

[](#použití-s-cms-konfigurátorem)

```
/** @var \NAttreid\Cms\Configurator\Configurator @inject */
public $configurator;

function createComponentGalleryConfigurator() {
    $gallery = $this->galleryFactory->create();
    $gallery->setStorage($this->configurator, 'nameOfVariableInSession');
    $gallery->setNamespace('example/class');
    return $gallery;
}
```

### Použití ve formuláři

[](#použití-ve-formuláři)

```
protected function createComponentGallery() {
    $session = $this->getSession('example/class');
    $session->setExpiration('1 hour');

    $gallery = $this->galleryFactory->create();
    $gallery->setStorage($session, 'example');
    return $gallery;
}

function onSuccessForm(Form $form, $values) {
    $createGallery = empty($values->id);
    $id = $this->model->save($values->id, $values)->getPrimary();

    if ($createGallery) {
        /* @var $gallery \NAttreid\Gallery\Gallery */
        $gallery=$this['gallery'];

        $gallery->changeNamespace('item/' . $values->url);
        $this->imageModel->add($id, $gallery->getImages());
        $gallery->clearTemp();
    }
}
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity70

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 ~54 days

Recently: every ~286 days

Total

41

Last Release

1419d ago

Major Versions

1.0.8 → 2.0.02016-09-16

PHP version history (3 changes)1.0.0PHP &gt;= 5.6

2.0.9PHP &gt;= 7.0

2.2.0PHP &gt;= 7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a388aeb3f00b15a3af1c1a5d3a2107c94af1730c6043dd30ce32a63f95ea290?d=identicon)[attreid](/maintainers/attreid)

---

Top Contributors

[![attreid](https://avatars.githubusercontent.com/u/13151440?v=4)](https://github.com/attreid "attreid (2 commits)")

### Embed Badge

![Health badge](/badges/nattreid-gallery/health.svg)

```
[![Health](https://phpackages.com/badges/nattreid-gallery/health.svg)](https://phpackages.com/packages/nattreid-gallery)
```

###  Alternatives

[ublaboo/datagrid

DataGrid for Nette Framework: filtering, sorting, pagination, tree view, table view, translator, etc

2971.9M23](/packages/ublaboo-datagrid)[nasext/dependent-select-box

Dependent Select Box for Nette Framework.

21262.8k2](/packages/nasext-dependent-select-box)[contributte/image-storage

Image storage for Nette framework

28749.3k1](/packages/contributte-image-storage)[brandembassy/slim-nette-extension

19190.2k](/packages/brandembassy-slim-nette-extension)[contributte/api

Powerful, documented, validated, built-in API to Nette Framework (@nette)

10684.3k](/packages/contributte-api)

PHPackages © 2026

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