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

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

mhndev/media
============

simple media manipulation

0.0.4(9y ago)24271BSD StylePHPPHP &gt;=5.4.0

Since Aug 4Pushed 9y ago2 watchersCompare

[ Source](https://github.com/mhndev/media)[ Packagist](https://packagist.org/packages/mhndev/media)[ Docs](http://github.com/mhndev/media)[ RSS](/packages/mhndev-media/feed)WikiDiscussions develop Synced yesterday

READMEChangelogDependencies (1)Versions (7)Used By (1)

Media Manipulation
------------------

[](#media-manipulation)

simple media manipulation library

```
define('ROOT', pathinfo(__FILE__)['dirname']);

define('IMAGE_PATH', ROOT.DIRECTORY_SEPARATOR.'storage'.DIRECTORY_SEPARATOR.'image');
define('AUDIO_PATH', ROOT.DIRECTORY_SEPARATOR.'storage'.DIRECTORY_SEPARATOR.'audio');
define('VIDEO_PATH', ROOT.DIRECTORY_SEPARATOR.'storage'.DIRECTORY_SEPARATOR.'video');
define('TEXT_PATH' , ROOT.DIRECTORY_SEPARATOR.'storage'.DIRECTORY_SEPARATOR.'text');

\mhndev\media\UploadFile::config([

    'min_storage' => 100,

    'formats'=>[
        'image'=>[
            'avatar'=>[
                'storagePath'=> IMAGE_PATH.DIRECTORY_SEPARATOR.'avatar',
                'uploadSizeLimit' => 2,
            ]
        ],
        'audio'=>[
            'music'=>[
                'storagePath'=> AUDIO_PATH.DIRECTORY_SEPARATOR.'music',
                'uploadSizeLimit' => 10

            ],
            'madahi'=>[
                'storagePath'=> AUDIO_PATH.DIRECTORY_SEPARATOR.'madahi',
                'uploadSizeLimit' => 4

            ]
        ],
        'video'=>[
            'storagePath'=> VIDEO_PATH,
            'uploadSizeLimit' => 10
        ],
        'text'=>[
            'license'=>[
                'storagePath'=> TEXT_PATH.DIRECTORY_SEPARATOR.'license',
                'uploadSizeLimit' => 1
            ]
        ]
    ]

]);

\mhndev\media\UploadFile::store('text', 'license');
\mhndev\media\UploadFile::store('music', 'music');
```

you can keep your config file as an php array in your config directory and include it in above code. above code check uploaded files and move input file with text index in rootpath.'/text/license' and also move input file with music index in rootpath.'/audio/music'

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

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

Total

5

Last Release

3488d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c3e5d182214e2e6b989a2230bcae80b2107b088da1c6dbea6f6f8d28702e272?d=identicon)[majidphpdeveloper](/maintainers/majidphpdeveloper)

---

Top Contributors

[![mhndev](https://avatars.githubusercontent.com/u/5164182?v=4)](https://github.com/mhndev "mhndev (10 commits)")

---

Tags

image manipulationmediafile-uploadphp-filefile manipulation

### Embed Badge

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

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

###  Alternatives

[intervention/image-laravel

Laravel Integration of Intervention Image

1588.9M162](/packages/intervention-image-laravel)[classic-o/nova-media-library

Tool and field that will let you managing files and add them to the posts

154180.4k](/packages/classic-o-nova-media-library)[intervention/image-driver-vips

libvips driver for Intervention Image

48177.4k10](/packages/intervention-image-driver-vips)[danihidayatx/image-optimizer

Optimize your Filament images before they reach your database. Forked from joshembling/image-optimizer for Filament v4 &amp; v5 support.

3218.1k](/packages/danihidayatx-image-optimizer)[ambroisemaupate/intervention-request

A customizable Intervention Image wrapper to use image simple re-sampling features over urls and a configurable cache.

4343.3k2](/packages/ambroisemaupate-intervention-request)[fab/media-upload

Fluid widget for mass uploading files on the Frontend using HTML5 techniques powered by Fine Uploader - http://fineuploader.com/

1927.9k1](/packages/fab-media-upload)

PHPackages © 2026

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