PHPackages                             microphork/package-uploads - 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. microphork/package-uploads

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

microphork/package-uploads
==========================

A file uploader package for the microphork framework

018PHP

Since Mar 14Pushed 7y agoCompare

[ Source](https://github.com/phork/microphork-package-uploads)[ Packagist](https://packagist.org/packages/microphork/package-uploads)[ RSS](/packages/microphork-package-uploads/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Introduction
------------

[](#introduction)

This is a file uploader package for the microphork framework. It validates and saves files uploaded via POST.

To extend this package create a `\Phork\App\Uploads` class in the `app/classes` folder.

Usage
-----

[](#usage)

```
//print a simple upload form
\Phork::output()->addContent('

        submit

');

//load and alias a new uploads package
class_alias(\Phork::instance()->initPackage('Uploads'), 'PhorkUploads');

//if a file was uploaded then save it
if (\Phork::router()->getMethod() == 'post' && $files = \PhorkUploads::getFiles()) {
    if (!empty($files['upload']) && $file = $files['upload']) {

        //uploaded $file['name'] to $file['tmp_name'] and move it to $output
        \PhorkUploads::saveFile($file['tmp_name'], $output = LOG_PATH.'upload.demo', true);
    }
}

```

Credits
-------

[](#credits)

Built by [Elenor](http://elenor.net) at [Phork Labs](http://phork.org).

License
-------

[](#license)

Licensed under The MIT License

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

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

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/microphork-package-uploads/health.svg)

```
[![Health](https://phpackages.com/badges/microphork-package-uploads/health.svg)](https://phpackages.com/packages/microphork-package-uploads)
```

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