PHPackages                             d3vy/max-upload-file-size - 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. d3vy/max-upload-file-size

Abandoned → [sbolch/max-upload-file-size](/?search=sbolch%2Fmax-upload-file-size)Package[File &amp; Storage](/categories/file-storage)

d3vy/max-upload-file-size
=========================

Gets maximum of upload file size.

v1.0.3(6y ago)1882MITPHPPHP &gt;=5.3

Since Sep 24Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/d3vy/max-upload-file-size)[ Packagist](https://packagist.org/packages/d3vy/max-upload-file-size)[ Docs](https://github.com/d3vy/MaxUploadFileSize)[ Fund](https://paypal.me/pools/c/8miGjy3Bcm)[ Fund](https://ko-fi.com/5hadow)[ RSS](/packages/d3vy-max-upload-file-size/feed)WikiDiscussions main Synced today

READMEChangelog (6)DependenciesVersions (5)Used By (0)

MaxUploadFileSize
=================

[](#maxuploadfilesize)

> Gets maximum of upload file size.

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

[](#installation)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require sbolch/max-upload-file-size
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Usage
-----

[](#usage)

```
$maxSize = (new \sbolch\MaxUploadFileSize\MaxUploadFileSizeGetter)->get();
// max upload file size rounded (down) with automatic unit

$maxSize = (new \sbolch\MaxUploadFileSize\MaxUploadFileSizeGetter)->get('KB');
// max upload file size rounded (down) in KB

$maxSize = (new \sbolch\MaxUploadFileSize\MaxUploadFileSizeGetter)
    ->setFormat($decimals = 0, $decimalPoint = '.', $thousandsSeparator = ' ', $showUnit = false)
    ->get('KB');
// max upload fine size rounded (down) in KB as formatted string
// setFormat called with defaults only for showing parameters
```

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance61

Regular maintenance activity

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

4

Last Release

2515d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d07773b12732581240d3515028d3b6a17f8074aa2d3c96250cb97e0243394eb?d=identicon)[sbolch](/maintainers/sbolch)

---

Top Contributors

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

---

Tags

fileuploadsize

### Embed Badge

![Health badge](/badges/d3vy-max-upload-file-size/health.svg)

```
[![Health](https://phpackages.com/badges/d3vy-max-upload-file-size/health.svg)](https://phpackages.com/packages/d3vy-max-upload-file-size)
```

###  Alternatives

[kartik-v/bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 5.x, 4.x, and 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.

5.4k7.9M13](/packages/kartik-v-bootstrap-fileinput)[unisharp/laravel-filemanager

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

2.2k3.3M73](/packages/unisharp-laravel-filemanager)[sonata-project/media-bundle

Symfony SonataMediaBundle

4625.5M71](/packages/sonata-project-media-bundle)[kartik-v/yii2-widget-fileinput

An enhanced FileInput widget for Bootstrap 3.x, 4.x &amp; 5.x with file preview, multiple selection, and more features (sub repo split from yii2-widgets)

2286.8M94](/packages/kartik-v-yii2-widget-fileinput)[servocoder/richfilemanager

RichFilemanager - highly customizable open-source file manager

90962.0k2](/packages/servocoder-richfilemanager)[fof/upload

The file upload extension for the Flarum forum with insane intelligence.

188171.7k15](/packages/fof-upload)

PHPackages © 2026

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