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

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

hypejunction/hypeattachments
============================

File attachments for Elgg

3.1.2(7y ago)12291proprietaryPHPPHP &gt;=5.5CI failing

Since Mar 19Pushed 4w ago2 watchersCompare

[ Source](https://github.com/hypeJunction/Elgg3-hypeAttachments)[ Packagist](https://packagist.org/packages/hypejunction/hypeattachments)[ Docs](http://hypejunction.com)[ RSS](/packages/hypejunction-hypeattachments/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (6)Dependencies (2)Versions (9)Used By (0)

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

[](#attachments-for-elgg)

[![Elgg 7.x](https://camo.githubusercontent.com/959475d1d91761b2e3ed85398ae1ebe9536a48c724e92bef53e7e2027c3d3627/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d372e782d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/959475d1d91761b2e3ed85398ae1ebe9536a48c724e92bef53e7e2027c3d3627/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d372e782d6f72616e67652e7376673f7374796c653d666c61742d737175617265)

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/)

Compatibility
-------------

[](#compatibility)

Plugin versionElgg version7.0.07.x6.0.06.x5.0.05.x4.0.04.x3.0.03.x

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance62

Regular maintenance activity

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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

Recently: every ~108 days

Total

8

Last Release

2562d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5071b1cd852e094b3f564962a625e04c227adc73af30c5b46b243ab8f20154a7?d=identicon)[hypeJunction](/maintainers/hypeJunction)

---

Top Contributors

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

---

Tags

elggelgg-pluginphppluginelggfilesattachments

### Embed Badge

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

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

###  Alternatives

[deliciousbrains/wp-amazon-s3-and-cloudfront

Automatically copies media uploads to a storage provider's bucket for delivery. Optionally configure a CDN for even faster delivery.

312214.1k1](/packages/deliciousbrains-wp-amazon-s3-and-cloudfront)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)

PHPackages © 2026

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