PHPackages                             jansuchanek/nattachments - 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. jansuchanek/nattachments

ActiveLibrary

jansuchanek/nattachments
========================

Universal file attachments component for Nette — upload, delete, reorder, rename, lightbox, PDF preview

v1.1.0(4d ago)01↓100%1MITLattePHP &gt;=8.2CI failing

Since Mar 20Pushed 4d agoCompare

[ Source](https://github.com/JanSuchanek/nattachments)[ Packagist](https://packagist.org/packages/jansuchanek/nattachments)[ RSS](/packages/jansuchanek-nattachments/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (3)Used By (1)

NAttachments
============

[](#nattachments)

File attachment system for Nette Framework — upload, manage, and associate files with Doctrine entities.

Features
--------

[](#features)

- 📎 **File Uploads** — Drag &amp; drop with preview
- 🖼️ **Image Thumbnails** — Auto-generated previews
- 🔗 **Entity Association** — Link files to any Doctrine entity
- 🗑️ **CRUD** — Rename, reorder, delete with AJAX
- ⚙️ **DI Extension** — Auto-registers upload services

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

[](#installation)

```
composer require jansuchanek/nattachments
```

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

[](#configuration)

```
extensions:
    attachments: NAttachments\DI\NAttachmentsExtension

attachments:
    uploadDir: %wwwDir%/uploads
```

Usage
-----

[](#usage)

In your presenter:

```
#[Inject]
public AttachmentControlFactory $attachmentFactory;

protected function createComponentAttachments(): AttachmentControl
{
    return $this->attachmentFactory->create($this->entity);
}
```

In your Latte template:

```
{control attachments}
```

Requirements
------------

[](#requirements)

- PHP &gt;= 8.2
- Nette Application ^3.2
- Doctrine ORM ^3.0

License
-------

[](#license)

MIT

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance99

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

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

Total

2

Last Release

4d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/38ce2f53e74d810d50aca863e1a3b954f34f1629dd01a6a8c7d4d582e7459e63?d=identicon)[JanSuchanek](/maintainers/JanSuchanek)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/jansuchanek-nattachments/health.svg)

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

###  Alternatives

[nette/nette

👪 Nette Framework - innovative framework for fast and easy development of secured web applications in PHP (metapackage)

1.6k2.7M326](/packages/nette-nette)[nette/web-project

Nette: Standard Web Project

10991.2k](/packages/nette-web-project)[contributte/image-storage

Image storage for Nette framework

28729.4k1](/packages/contributte-image-storage)[tomaj/nette-api

Nette api

35258.5k4](/packages/tomaj-nette-api)[jzechy/jquery-fileupload

Nette UploadControl rozšířené o blueimp jQuery FileUpload.

2723.3k](/packages/jzechy-jquery-fileupload)[ublaboo/image-storage

Image storage for Nette framework

2912.8k](/packages/ublaboo-image-storage)

PHPackages © 2026

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