PHPackages                             bera/upload - 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. bera/upload

ActiveLibrary[File &amp; Storage](/categories/file-storage)

bera/upload
===========

a package for upload files

v1.3(6y ago)023MITPHP

Since Apr 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/joykumarbera/upload)[ Packagist](https://packagist.org/packages/bera/upload)[ RSS](/packages/bera-upload/feed)WikiDiscussions master Synced 6d ago

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

Bera Upload
===========

[](#bera-upload)

easy file upload for php

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

[](#installation)

Use composer to install Bera Upload.

```
composer require bera/upload
```

Usage
-----

[](#usage)

```
require 'vendor/autoload.php';
$new_upload = new \Bera\Upload\Upload($_FILES['data']);
$new_upload->setUploadConditon( [
    'file_size' => '20M',
    'allowed_extension' => ['dll','png','jpeg','jpg','pdf']
]);
$new_upload->setUploadDir(__DIR__ . '/upload');
try {
    if($new_upload->upload()) {
        echo 'upload done!';
    } else {
        echo 'upload failed';
    }
}catch ( \Bera\Upload\Exception\FileTypeNotSupprotExectpion $e) {
    echo $e->getMessage();
}catch ( \Bera\Upload\Exception\UplodMaxSizeException $e) {
    echo $e->getMessage();
}
```

License
-------

[](#license)

MIT Licence

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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

Total

4

Last Release

2219d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/83c1f3f5cf258ade50e6452be4f3108dc06bac26c222904b640e70e1e1c5c83e?d=identicon)[bera.dev.007](/maintainers/bera.dev.007)

---

Top Contributors

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

---

Tags

upload

### Embed Badge

![Health badge](/badges/bera-upload/health.svg)

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

###  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)[vich/uploader-bundle

Ease file uploads attached to entities

1.9k25.9M116](/packages/vich-uploader-bundle)[oneup/uploader-bundle

This Symfony bundle provides a server implementation for handling single and multiple file uploads using either FineUploader, jQuery File Uploader, YUI3 Uploader, Uploadify, FancyUpload, MooUpload, Plupload or Dropzone. Features include chunked uploads, orphanages, Gaufrette and Flysystem support.

6066.3M27](/packages/oneup-uploader-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.8M95](/packages/kartik-v-yii2-widget-fileinput)[ecodev/graphql-upload

A middleware to support file uploads in GraphQL

902.2M12](/packages/ecodev-graphql-upload)[marrouchi/upload-crop-image-bundle

Basic server side cropping behavior for Symfony2

121.1k](/packages/marrouchi-upload-crop-image-bundle)

PHPackages © 2026

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