PHPackages                             inweb/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. [Framework](/categories/framework)
4. /
5. inweb/media

ActiveLibrary[Framework](/categories/framework)

inweb/media
===========

Media components for InWeb framework

9.0.6(3y ago)0276MITPHPPHP ^7.1|^8.0CI failing

Since Dec 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/inwebcomp/media)[ Packagist](https://packagist.org/packages/inweb/media)[ RSS](/packages/inweb-media/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (9)Versions (12)Used By (0)

InWeb Media
===========

[](#inweb-media)

Media files manipulation

Requirements
------------

[](#requirements)

- Laravel &gt;=5.7

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

[](#installation)

1. Install package via *composer require*```
    composer require inweb/media

    ```

    or add to your composer.json to **require** section and update your dependencies ```
    "inweb/media": "*"

    ```
2. Run migrations ```
    php artisan migrate

    ```

You are ready to go!

Usage
-----

[](#usage)

Add trait to your model (InWeb\\Base\\Entity)

```
use InWeb\Media\WithImages;

```

For thimbnails implement method:

```
use InWeb\Media\Thumbnail;

...

public function getImageThumbnails()
{
    return [
        'catalog' => new Thumbnail(function (\Intervention\Image\Image $image) {
            return $image->resize(100, 100, function (Constraint $c) {
                $c->aspectRatio();
                $c->upsize();
            })->resizeCanvas(100, 100);
        }, true),
    ];
}

```

Thumbnail class receives 2 parameters:

1. Closure with *\\Intervention\\Image\\Image* object
2. Boolean - Only for main image (default - **false**)

You can specify **original** thumbnail name to manipulate with original image.

```
public function getImageThumbnails()
{
    return [
        'original' => new Thumbnail(...),
    ];
}

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 96.9% 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 ~25 days

Recently: every ~5 days

Total

11

Last Release

1369d ago

Major Versions

v7.0 → 8.0.12021-12-11

8.0.3 → 9.0.02022-03-15

PHP version history (2 changes)v7.0PHP ^7.1.3

8.0.1PHP ^7.1|^8.0

### Community

Maintainers

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

---

Top Contributors

[![escral](https://avatars.githubusercontent.com/u/19815216?v=4)](https://github.com/escral "escral (31 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

frameworklaravelimagesmediainweb

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/inweb-media/health.svg)

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

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[marketplacekit/marketplacekit

Open source Marketplace Platform

8185.2k](/packages/marketplacekit-marketplacekit)[kompo/kompo

Laravel &amp; Vue.js FullStack Components for Rapid Application Development

11812.4k21](/packages/kompo-kompo)[reinvanoyen/cmf

A flexible and extendable solution for all your content management needs

1025.5k](/packages/reinvanoyen-cmf)

PHPackages © 2026

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