PHPackages                             a-sabagh/simple-file-uploader - 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. a-sabagh/simple-file-uploader

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

a-sabagh/simple-file-uploader
=============================

Simple and Secure PHP File Upload with great options and very light and easy to use.

1.0(7y ago)715GPL-3.0-or-laterPHPPHP ^5.3.3 || ^7.0

Since Feb 21Pushed 7y agoCompare

[ Source](https://github.com/a-sabagh/simple-file-uploader)[ Packagist](https://packagist.org/packages/a-sabagh/simple-file-uploader)[ RSS](/packages/a-sabagh-simple-file-uploader/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/6afd92e9d9d79be0422880f4e3d86d6cb43577722000fe80e7050766e7031a3c/68747470733a2f2f706f7365722e707567782e6f72672f612d7361626167682f73696d706c652d66696c652d75706c6f616465722f762f737461626c65)](https://packagist.org/packages/a-sabagh/simple-file-uploader)[![Total Downloads](https://camo.githubusercontent.com/27ffa81da737aa4e3636ea81f938505ea8429c437e57167d9fa43f4afeb73d36/68747470733a2f2f706f7365722e707567782e6f72672f612d7361626167682f73696d706c652d66696c652d75706c6f616465722f646f776e6c6f616473)](https://packagist.org/packages/a-sabagh/simple-file-uploader)[![License](https://camo.githubusercontent.com/9af7a0124706135a90c4cf64d82684f30fea68a4f37018d917e21e0b39be2b7f/68747470733a2f2f706f7365722e707567782e6f72672f612d7361626167682f73696d706c652d66696c652d75706c6f616465722f6c6963656e7365)](https://packagist.org/packages/a-sabagh/simple-file-uploader)[![composer.lock](https://camo.githubusercontent.com/9d775acba0ccc88c4f850aad457bbec77a6878b7ddc20ef4ed8c38e506729581/68747470733a2f2f706f7365722e707567782e6f72672f612d7361626167682f73696d706c652d66696c652d75706c6f616465722f636f6d706f7365726c6f636b)](https://packagist.org/packages/a-sabagh/simple-file-uploader)[![Say Thanks!](https://camo.githubusercontent.com/ee843c523d57170345478ba1c560741cf66c2e266144266ccd1ab0c51b7f87a5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5361792532305468616e6b732d212d3145414544422e737667)](https://saythanks.io/to/a-sabagh)

simple-file-uploader
====================

[](#simple-file-uploader)

🐘 Simple and Secure PHP File Uploader with greate options and very light and easy to use.

Requirement
-----------

[](#requirement)

- php 5.6 &gt;=

Install Package
---------------

[](#install-package)

to install simple-file-uploader in your php project you can using composer

```
composer require a-sabagh/simple-file-uploader

```

if you never willing to using composer you can download from [Package](https://github.com/a-sabagh/simple-file-uploader) and require `src/Uploader.php` and use namespace

Usage
-----

[](#usage)

first,use name space and create object from `Uploader` class

```
use SimpleUploader\Uploader;
$handle = new Uploader(__DIR__ . "/uploads");
```

`Uploader` class just accept one parameter as a destination of uploader files

MethodParameterReturnDescriptions`$handle->setType()`ArrayVoidSet acceptable file type for Uploading`$handle->setMaxSize()`IntegerVoidSet max size for file in Byte`$handle->getMessages()`NULLArrayGet result message of uploading proccess`$handle->upload()``$_FILE['file_name']`ArrayUpload files and return uploading files infoLicense
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

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

Unknown

Total

1

Last Release

2638d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f589c5263d4d47f0dc302a25c90e3c5c2832be21618be18c69c3bc746b6eface?d=identicon)[a-sabagh](/maintainers/a-sabagh)

---

Top Contributors

[![a-sabagh](https://avatars.githubusercontent.com/u/24961943?v=4)](https://github.com/a-sabagh "a-sabagh (25 commits)")

---

Tags

composer-packagepackagistfilesuploaderfile-handling

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/a-sabagh-simple-file-uploader/health.svg)

```
[![Health](https://phpackages.com/badges/a-sabagh-simple-file-uploader/health.svg)](https://phpackages.com/packages/a-sabagh-simple-file-uploader)
```

###  Alternatives

[league/flysystem

File storage abstraction for PHP

13.6k639.1M2.2k](/packages/league-flysystem)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[league/flysystem-local

Local filesystem adapter for Flysystem.

226231.8M39](/packages/league-flysystem-local)[mikehaertl/php-tmpfile

A convenience class for temporary files

9729.7M20](/packages/mikehaertl-php-tmpfile)[league/flysystem-memory

In-memory filesystem adapter for Flysystem.

8533.6M194](/packages/league-flysystem-memory)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)

PHPackages © 2026

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