PHPackages                             pessek/hypeattachments - 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. pessek/hypeattachments

ActiveElgg-plugin

pessek/hypeattachments
======================

File attachments for Elgg

v3.1.2(4y ago)03proprietaryPHPPHP &gt;=7.1

Since May 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/rheman/hypeAttachments)[ Packagist](https://packagist.org/packages/pessek/hypeattachments)[ RSS](/packages/pessek-hypeattachments/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Attachments for Elgg
====================

[](#attachments-for-elgg)

[![Elgg 3.0](https://camo.githubusercontent.com/e646ef90c665819eef06372ac1af176270e4db7642e8c52976072bca821b1694/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d332e302d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/e646ef90c665819eef06372ac1af176270e4db7642e8c52976072bca821b1694/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d332e302d6f72616e67652e7376673f7374796c653d666c61742d737175617265)

Features
--------

[](#features)

- API and UI for attaching files and other entities
- Form input for uploading file attachments
- Views for displaying attachments

Usage
-----

[](#usage)

### Magic

[](#magic)

If you add your entity subtype to a list of entities supporting attachments, the plugin will attempt to create all of the UI, necessary to upload and display attachments:

```
elgg_register_plugin_hook_handler('allow_attachments', 'object:my_subtype', '\Elgg\Values::getTrue');
```

Note that this generic approach might not work with all plugins, and may require additional customizations on your side.

### Display an attachment input

[](#display-an-attachment-input)

```
echo elgg_view('input/attachments');
```

To add an attachments input to your comment and discussion replies forms, use the following code. You will not need to add any code to your save action.

```
echo elgg_view('input/attachments', [
	'name' => 'comment_attachments',
		]);
```

To add an attachments input to your personal messages and replies forms, use the following code. You will not need to add any code to your save action.

```
echo elgg_view('input/attachments', [
		'name' => 'message_attachments',
	]);
```

Note that if you are not using *hypeDropzone*, your form must have it's encoding set to `multipart/form-data`.

### Attach uploaded files in an action

[](#attach-uploaded-files-in-an-action)

```
hypeapps_attach_uploaded_files($entity, 'upload', [
   'access_id' => $entity->access_id, // change the access level of uploaded files
]);
```

### Attach an object

[](#attach-an-object)

```
hypeapps_attach($entity, $attachment);
```

### Display attachments

[](#display-attachments)

```
```php
echo elgg_view('output/attachments', [
	'entity' => $entity,
]);
```

Acknowledgements
----------------

[](#acknowledgements)

- Early version of the plugin development has been partially sponsored by [Social Business World](https://socialbusinessworld.org/)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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

1805d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/649b17479d3b3a91bcdbbd05d56d9c55a33e095c8c4412ba6a34fa43bd3aff46?d=identicon)[rhemandaddy](/maintainers/rhemandaddy)

---

Tags

pluginelggfilesattachments

### Embed Badge

![Health badge](/badges/pessek-hypeattachments/health.svg)

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

PHPackages © 2026

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