PHPackages                             gigcodes/asset-manager - 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. gigcodes/asset-manager

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

gigcodes/asset-manager
======================

Asset Manager Laravel package for Gigcodes UI Library

v0.2(4y ago)0699MITPHP

Since Mar 8Pushed 3y agoCompare

[ Source](https://github.com/gigcodes/AssetManager)[ Packagist](https://packagist.org/packages/gigcodes/asset-manager)[ RSS](/packages/gigcodes-asset-manager/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (3)Versions (21)Used By (0)

GIGCODES Asset Manager
======================

[](#gigcodes-asset-manager)

Gigcodes - Asset Manager is a package for easily uploading and attaching media files to models with Laravel.

Features
--------

[](#features)

- Filesystem-driven approach is easily configurable to allow any number of upload directories with different accessibility. Easily restrict uploads by MIME type, extension and/or aggregate type (e.g. `image` for JPEG, PNG or GIF).
- Many-to-many polymorphic relationships allow any number of media to be assigned to any number of other models without any need to modify their schema.
- Attach media to models with tags, in order to set and retrieve media for specific purposes, such as `'thumbnail'`, `'featured image'`, `'gallery'` or `'download'`.
- Integrated support for integration/image for manipulating image files to create variants for different use cases.

Example Usage
-------------

[](#example-usage)

Upload a file to the server, and place it in a directory on the filesystem disk named "uploads". This will create a Media record that can be used to refer to the file.

```
$media = MediaUploader::fromSource($request->file('thumb'))
	->toDestination('uploads', 'blog/thumbnails')
	->upload();
```

Attach the Media to another eloquent model with one or more tags defining their relationship.

```
$post = Post::create($this->request->input());
$post->attachMedia($media, ['thumbnail']);
```

Retrieve the media from the model by its tag(s).

```
$post->getMedia('thumbnail')->first()->getUrl();
```

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

[](#installation)

Add the package to your Laravel app using composer

```
composer require gigcodes/asset-manager
```

Publish the config file (`config/asset_manager.php`) of the package using artisan.

```
php artisan vendor:publish --provider="Gigcodes\AssetManager\AssetManagerServiceProvider"
```

Run the migrations to add the required tables to your database.

```
php artisan migrate
```

Documentation
-------------

[](#documentation)

Read the documentation [here](https://gigcodes.com).

License
-------

[](#license)

This package is released under the MIT license (MIT).

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

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

Every ~8 days

Recently: every ~16 days

Total

18

Last Release

1442d ago

Major Versions

v0.2 → v2.0.9-alpha2022-04-12

v1.0.x-dev → v2.0.0-alpha2022-05-17

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/88731705?v=4)[Karthick K](/maintainers/ikkarti)[@ikkarti](https://github.com/ikkarti)

---

Top Contributors

[![kkz6](https://avatars.githubusercontent.com/u/28473613?v=4)](https://github.com/kkz6 "kkz6 (31 commits)")

---

Tags

laraveluploaderMedia Managergigcodes

### Embed Badge

![Health badge](/badges/gigcodes-asset-manager/health.svg)

```
[![Health](https://phpackages.com/badges/gigcodes-asset-manager/health.svg)](https://phpackages.com/packages/gigcodes-asset-manager)
```

###  Alternatives

[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.5M85](/packages/unisharp-laravel-filemanager)[plank/laravel-mediable

A package for easily uploading and attaching media files to models with Laravel

8331.6M14](/packages/plank-laravel-mediable)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[mmes-design/filament-file-manager

A beautiful file manager plugin for Filament. Browse, upload, rename, move and delete files with ease.

163.1k](/packages/mmes-design-filament-file-manager)

PHPackages © 2026

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