PHPackages                             litto/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. litto/uploader

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

litto/uploader
==============

File Uploading in PHP applications

v1.0(4y ago)081proprietaryPHPPHP &gt;=5.0

Since Feb 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/litto/uploader)[ Packagist](https://packagist.org/packages/litto/uploader)[ RSS](/packages/litto-uploader/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (1)

File Uploader
=============

[](#file-uploader)

File Uploader Class for Files in PHP

\##How to Install?

Install Using Composer or Direcly you can download from the Github Code You can install via composer by using this command:-

composer require litto/uploader:v1.0

How it works?
-------------

[](#how-it-works)

When File is submitted in a form. In the save function call like this:-

```
       $absDirName =   dirname(dirname(__FILE__)).'/uploads';  // uploads folder where you are storing files
        $uploader   =   new Uploader($absDirName.'/');  //Initilize Class passing the uploader path
        $uploader->setExtensions(array('jpg','jpeg','png','gif')); // Restrict the Formats valid for thsi file upload
        $uploader->setSequence('page'); // You can set name sequence or you can pass the slug varibale for making seo friendly
        $uploader->setMaxSize(2); // Set size of the Uploader file in MB
        if($uploader->uploadFile("txtFile")){  // Class is uplaoding file where our file field name is txtFile
            /*
             * File uploader successfully , now store to Db
            */
            $image      =   $uploader->getUploadName(); //getting uploaded file name
           // You can store  the file in your database
        }

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

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

1561d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0409ad96d8dabd00048f79a63785982e4ed1c05a4e6ab52f6ff12201a7c5dd8?d=identicon)[Iamlitto](/maintainers/Iamlitto)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/litto-uploader/health.svg)

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

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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