PHPackages                             monurakkaya/laravel-image - 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. [Image &amp; Media](/categories/media)
4. /
5. monurakkaya/laravel-image

AbandonedArchivedLibrary[Image &amp; Media](/categories/media)

monurakkaya/laravel-image
=========================

A simple package to manage model related images

1.1.0(7y ago)048PHP

Since Aug 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/monurakkaya/laravel-image)[ Packagist](https://packagist.org/packages/monurakkaya/laravel-image)[ RSS](/packages/monurakkaya-laravel-image/feed)WikiDiscussions master Synced 3d ago

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

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

[](#installation)

`composer require monurakkaya/laravel-image`

Configuration
-------------

[](#configuration)

```
php artisan vendor:publish --tag=laravel-image
php artisan migrate

```

It will create the imageables table.

Usage
-----

[](#usage)

Change

`use Illuminate\Database\Eloquent\Model;` line to

`use Monurakkaya\LaravelImage\Support\Image as Model;`

Then in your model :

`$model->uploadImages($request->file('input_name'))`

If you want to remove images after model has been deleted, simply add

`Model::observe(Monurakkaya\LaravelImage\Observers\ImageObserver)`

in your

`app/Providers/AppServiceProvider.php` boot method

```
    public function boot()
    {
        Model::observe(Monurakkaya\LaravelImage\Observers\ImageObserver);
    }
```

Configuration
-------------

[](#configuration-1)

There is two type of images thumbnail, poster.

Default, poster dimensions 1920x1080 and thumbnail 450x300.

If you want to change these dimensions simply add public properties to your related model

```
    class Gallery extends Model {

        protected $poster = [
            'width' => 800,
            'height' => 800
        ];

        protected $thumbnail = false; // Package won't generate a thumbnail for uploaded images.
    }
```

Querying
--------

[](#querying)

Images Collection

```
    $gallery = Gallery::with('images')->first();
    $gallery->images; //returns image collection.
```

Make Default Image

```
    $image = $gallery->images()->first();
    $gallery->makeDefault($image);
```

Get Default Image

```
    $gallery = Gallery::with('defaultImage')->first();
    $gallery->defaultImage; //returns image model
```

Delete an Image

```
    $gallery->removeImage($image)
```

Component
---------

[](#component)

This package comes with built in image management panel. It can be useable with `@laravel-image` component

```
    @laravelImage([
        'model' => $gallery
    ])
    @endlaravelImage
```

(Requires bootstrap3)

Here is a screenshot

[![component](https://camo.githubusercontent.com/bbacc3220e1b68e4f55e280ef0aa3aa741fb7ced77ef78b87aebd85a984591f1/687474703a2f2f6d6f6e7572616b6b6179612e636f6d2f6c61726176656c2d696d6167652f636f6d706f6e656e742e706e67)](https://camo.githubusercontent.com/bbacc3220e1b68e4f55e280ef0aa3aa741fb7ced77ef78b87aebd85a984591f1/687474703a2f2f6d6f6e7572616b6b6179612e636f6d2f6c61726176656c2d696d6167652f636f6d706f6e656e742e706e67)

Translation
-----------

[](#translation)

Refer to `/resources/lang/en/laravel-image.php`

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

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

Total

2

Last Release

2826d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe63a20ff84ad0d46ff286893f0e77a1fc5c53961c6fcbe9df2748cf55a3aef6?d=identicon)[monurakkaya](/maintainers/monurakkaya)

---

Top Contributors

[![monurakkaya](https://avatars.githubusercontent.com/u/10274803?v=4)](https://github.com/monurakkaya "monurakkaya (11 commits)")

### Embed Badge

![Health badge](/badges/monurakkaya-laravel-image/health.svg)

```
[![Health](https://phpackages.com/badges/monurakkaya-laravel-image/health.svg)](https://phpackages.com/packages/monurakkaya-laravel-image)
```

###  Alternatives

[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)[imagekit/imagekit

PHP library for Imagekit

47795.6k9](/packages/imagekit-imagekit)

PHPackages © 2026

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