PHPackages                             laravel-daddy/swift-media - 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. laravel-daddy/swift-media

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

laravel-daddy/swift-media
=========================

Easy way to manage multimedia with polymorphic table

1.0.0(1y ago)111MITPHPPHP ^8.1

Since Oct 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Youssef-Gerges/swift-media)[ Packagist](https://packagist.org/packages/laravel-daddy/swift-media)[ RSS](/packages/laravel-daddy-swift-media/feed)WikiDiscussions master Synced 1mo ago

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

Swift Media Package
===================

[](#swift-media-package)

Crafted with ♥️ by Laravel Daddy

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

[](#installation)

To install the package, run the following command:

```
composer require laravel-daddy/swift-media
php artisan vendor:publish --tag=migrations
```

Upon installation, the package will automatically publish the necessary migrations and register the **SwiftMediaServiceProvider**.

Usage
-----

[](#usage)

All media are automatically cached to enhance the performance of your application. This ensures that accessing settings is efficient and optimized.

You can manage settings using either the facade or the helper method.

### Using the Facade

[](#using-the-facade)

```
use LaravelDaddy\SwiftSettings\Facade\SwiftSettingsFacade;

// will upload file and delete old file if exist
SwiftMedia::uploadFile($model_type= User::class, $model_id= 2, $attribute= 'profile', $file, $path= '/');
SwiftMedia::deleteFile($model_type= User::class, $model_id= 2, $attribute= 'profile');
SwiftMedia::getAllFiles();
SwiftMedia::getAllFilesPaginated($limit = 20);
```

### Using the Helper Method

[](#using-the-helper-method)

```
// will upload file and delete old file if exist
swift_media()->uploadFile($model_type= User::class, $model_id= 2, $attribute= 'profile', $file, $path= '/');
swift_media()->deleteFile($model_type= User::class, $model_id= 2, $attribute= 'profile');
swift_media()->getAllFiles();
swift_media()->getAllFilesPaginated($limit = 20);
```

Both approaches allow you to retrieve or update media efficiently, with all keys being cached for improved performance.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

580d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f96d0a41ba223ce3dfd17f4de047e6337fdd42733c461f2347fb1b5730d197a?d=identicon)[Youssef Gerges](/maintainers/Youssef%20Gerges)

---

Top Contributors

[![Youssef-Gerges](https://avatars.githubusercontent.com/u/40138152?v=4)](https://github.com/Youssef-Gerges "Youssef-Gerges (12 commits)")

### Embed Badge

![Health badge](/badges/laravel-daddy-swift-media/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-daddy-swift-media/health.svg)](https://phpackages.com/packages/laravel-daddy-swift-media)
```

###  Alternatives

[aws/aws-sdk-php-laravel

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

1.7k35.6M75](/packages/aws-aws-sdk-php-laravel)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)[spatie/laravel-google-cloud-storage

Google Cloud Storage filesystem driver for Laravel

2408.9M13](/packages/spatie-laravel-google-cloud-storage)[azure-oss/storage-blob-laravel

Azure Storage Blob filesystem driver for Laravel

63582.2k1](/packages/azure-oss-storage-blob-laravel)[spatie/laravel-backup-server

Backup multiple applications

17016.7k1](/packages/spatie-laravel-backup-server)

PHPackages © 2026

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