PHPackages                             coderatio/uploadia - 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. coderatio/uploadia

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

coderatio/uploadia
==================

A flexible PHP file upload library

v0.1(7y ago)7142[1 PRs](https://github.com/coderatio/uploadia/pulls)MITPHPPHP &gt;=5.4

Since Jul 14Pushed 5y agoCompare

[ Source](https://github.com/coderatio/uploadia)[ Packagist](https://packagist.org/packages/coderatio/uploadia)[ RSS](/packages/coderatio-uploadia/feed)WikiDiscussions master Synced 4d ago

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

Uploadia
========

[](#uploadia)

A flexible PHP file upload library

Download
========

[](#download)

`composer require coderatio/uploadia`

Or Clone this repo.

Usage
=====

[](#usage)

```
require 'vendor/autoload.php'; // if you downloaded via composer
// OR
require 'pathtouploadia/src/Uploadia.php';

$uploadia = new Coderatio\Uploadia\Uploadia();
$uploadia->setDir('uploads')
    ->setExtensions(['jpg', 'png', 'jpeg', 'gif'])
    ->setMaxSize(1); // In megabytes. 1MB

// There are several methods to use. e.g $uploadia->allowAllFormats()
// $uploadia->sameName($bool) takes a boolean. e.t.c

if($uploadia->uploadFile('photo') {
     // photo is the file input name.
     // Get the uploaded file name or get error message.

     $uploadia->getUploadName(); // Returns uploaded file name;
     $uploadia->getMessage(); // Returns error messages
}
```

Contribution
============

[](#contribution)

Fork the project and send pull request, email me via , find me on [Twitter](https://twitter.com/josiahoyahaya) and say something about it anywhere possible.

Licence
=======

[](#licence)

This project is licenced under MIT license.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

2862d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/coderatio-uploadia/health.svg)

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

###  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)
