PHPackages                             fanswoo/attachment - 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. fanswoo/attachment

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

fanswoo/attachment
==================

fanswoo attachment

0728↑310%PHP

Since Mar 28Pushed 2mo agoCompare

[ Source](https://github.com/fanswoo/attachment)[ Packagist](https://packagist.org/packages/fanswoo/attachment)[ RSS](/packages/fanswoo-attachment/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Fanswoo/Attachment
==================

[](#fanswooattachment)

Fanswoo/Attachment for Filament
-------------------------------

[](#fanswooattachment-for-filament)

This package provides files and pictures upload manager. it can also support Filament forms field.

### Requirements

[](#requirements)

- Laravel v11
- Filament v3

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

[](#installation)

You can install the package via composer:

```
composer require fanswoo/attachment
```

After that run the `vendor:publish` command:

```
php artisan vendor:publish --provider=FF\\Attachment\\Attachment\\AttachmentProvider --tag=migrations
```

This will publish the migrations from `fanswoo/attachment`

And run migrates

```
php artisan migrate
```

Usage
-----

[](#usage)

### Files usage

[](#files-usage)

In you `Model` add `FF\Attachment\Relations\CanRelateFile` trait

```
use Illuminate\Database\Eloquent\Model;
use FF\Attachment\Relations\CanRelateFile;

class Record extends Model
{
    use CanRelateFile;
}
```

### Pics usage

[](#pics-usage)

In you `Model` add `FF\Attachment\Relations\CanRelatePic` trait

```
use Illuminate\Database\Eloquent\Model;
use FF\Attachment\Relations\CanRelatePic;

class Record extends Model
{
    use CanRelatePic;
}
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance56

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10332688?v=4)[Yi Yang](/maintainers/sacriley)[@sacriley](https://github.com/sacriley)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/fanswoo-attachment/health.svg)

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

###  Alternatives

[venveo/craft-compress

Create smart zip files from Craft assets on the fly

124.7k](/packages/venveo-craft-compress)

PHPackages © 2026

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