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 2w ago

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 46% 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

3533d 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

1589.8M226](/packages/intervention-image-laravel)[unopim/unopim

UnoPim Laravel PIM

10.8k2.5k](/packages/unopim-unopim)[code16/sharp

Laravel Content Management Framework

79466.1k10](/packages/code16-sharp)[intervention/image-driver-vips

libvips driver for Intervention Image

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

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

154183.4k](/packages/classic-o-nova-media-library)[mostafaznv/larupload

Larupload is a ORM based file uploader for laravel to upload image, video, audio and other known files.

75487.1k6](/packages/mostafaznv-larupload)

PHPackages © 2026

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