PHPackages                             lyre/file - 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. lyre/file

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

lyre/file
=========

File management with filament

1.4.4(1mo ago)03131MITPHPPHP ^8.3

Since May 4Pushed 1mo ago1 watchersCompare

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

READMEChangelogDependencies (5)Versions (25)Used By (1)

Lyre File
=========

[](#lyre-file)

Lyre File is a [Lyre](https://packagist.org/packages/lyre/lyre) addon for simple Media Management. It comes with the following predefined models to help you manage your media content:

- File - This defines the actual media file
- Attachment - This is a morph model defining your relationships to your media files

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

[](#installation)

```
composer require lyre/file
```

### Publish Assets

[](#publish-assets)

```
php artisan vendor:publish --provider="Lyre\File\Providers\LyreFileServiceProvider"
```

After installation, add the `HasFile` trait to all the relevant models:

```
use Lyre\File\Concerns\HasFile;

use HasFile;
```

### Dependencies

[](#dependencies)

Lyre File depends on [Lyre](https://packagist.org/packages/lyre/lyre) and [Laravel Filament](https://filamentphp.com/). To complete installation, especially if you require Filament functionality, follow these additional commands:

```
php artisan filament:install --panels
```

To create an admin user:

```
php artisan make:filament-user
```

#### Discover Content Filament Resources

[](#discover-content-filament-resources)

To Discover Lyre File Filament Resources on your Filament dashboard, add the LyreFileFilamentPlugin to your Filament panel like so:

```
use Lyre\File\Filament\Plugins\LyreFileFilamentPlugin;

$panel->plugins([
    LyreFileFilamentPlugin::make(),
]);
```

SelectFromGallery Custom Field
------------------------------

[](#selectfromgallery-custom-field)

Lyre File comes with a custom field to select files from gallery. You may define whether or not your model has multiple files. By default, your model will only have one file.

```
use Lyre\File\Filament\Forms\Components\SelectFromGallery;

SelectFromGallery::make('files')->label('Featured Images')->multiple()
```

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance93

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

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

Recently: every ~27 days

Total

24

Last Release

36d ago

PHP version history (2 changes)1.0.0PHP ^8.2

1.4.2PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38941486?v=4)[Kigathi](/maintainers/Kigathi)[@kigathi](https://github.com/kigathi)

---

Top Contributors

[![kigathi-chege](https://avatars.githubusercontent.com/u/30687709?v=4)](https://github.com/kigathi-chege "kigathi-chege (28 commits)")

---

Tags

phplaravellaravel 10laravel 11laravel 12libraryfilefilescontentSimplegithubmediacrudpagessectionsresourcesRelationshipsopen-sourcelyre

### Embed Badge

![Health badge](/badges/lyre-file/health.svg)

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

###  Alternatives

[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k37.3M83](/packages/aws-aws-sdk-php-laravel)[goodway/laravel-nats

Nats jetstream queue driver with client for Laravel

345.5k](/packages/goodway-laravel-nats)[erlandmuchasaj/laravel-file-uploader

A simple package to help you easily upload files to your laravel project.

139.0k](/packages/erlandmuchasaj-laravel-file-uploader)

PHPackages © 2026

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