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

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

sevens/uploader-trait
=====================

A library for file upload in PHP.

v1.0.0(5y ago)024MITPHPPHP &gt;=7.2.0

Since Nov 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/temmyscope/uploader)[ Packagist](https://packagist.org/packages/sevens/uploader-trait)[ RSS](/packages/sevens-uploader-trait/feed)WikiDiscussions master Synced 6d ago

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

Seven File Uploader
-------------------

[](#seven-file-uploader)

```
- It is part of the libraries used on the altvel framework project but can be used
in any applicable file upload scenario.

- File Uploader a.k.a uploader-trait is developed by Elisha Temiloluwa a.k.a TemmyScope.

- Developed to make easier the routine of file upload on traditional file servers.

- Install using composer

```

```
composer require sevens/uploader-trait
```

### Usage: Implementating &amp; Extending

[](#usage-implementating--extending)

***There are two ways to use this library in your project***

```
- One way would be to call the Uploader constructor

```

```
use Seven\File\Uploader;

$uploader = new Uploader(
 string $destination = __DIR__.'/cdn',
 array $allowedTypes = [ 'jpg' => 'image/jpeg', 'png' => 'image/png' ],
 int $sizeLimit =  5024768
);

$uploader->upload('image');
```

```
- Another way would be to extend the Uploader Class and provide the necessary properties

```

\*\*\*If you don't provide the necessary properties, default values have already being provided in the Uploader Class \*\*\*

```
use Seven\File\Uploader;

class FileUploader extends Uploader{

 protected $destination = __DIR__.'/cdn';

 protected $allowedTypes = [ 'jpg' => 'image/jpeg', 'png' => 'image/png' ];

 protected $sizeLimit =  5024768;

}
```

### Usage: Calling Methods

[](#usage-calling-methods)

***There are a couple useful methods to use in this library***

```
	$file = new FileUploader();
```

```
- Upload $_FILES['image']

```

```
$file->upload('image');
```

```
- To get uploaded file name only

```

```
$file->name()
```

```
- To get uploaded file address, containing file address and name

```

```
$file->fullName();
```

```
- To get uploaded file type

```

```
$file->type();
```

```
- To get uploaded status; returns True if upload was successful

```

```
$file->status();
```

```
- To get error message; it would be empty if upload status is true

```

```
$file->statusMessage();
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

2010d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

fileuploadimage resizeuploader

### Embed Badge

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

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

###  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)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.3M74](/packages/unisharp-laravel-filemanager)[sonata-project/media-bundle

Symfony SonataMediaBundle

4625.5M71](/packages/sonata-project-media-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)[fof/upload

The file upload extension for the Flarum forum with insane intelligence.

188171.7k15](/packages/fof-upload)[czim/laravel-paperclip

Laravel Eloquent file attachment solution

80802.1k6](/packages/czim-laravel-paperclip)

PHPackages © 2026

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