PHPackages                             erykai/upload - 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. erykai/upload

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

erykai/upload
=============

Upload media, files and images

v1.4.2(3y ago)01201MITPHPPHP &gt;=8.0

Since Aug 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Erykai/upload)[ Packagist](https://packagist.org/packages/erykai/upload)[ GitHub Sponsors](https://github.com/Erykai)[ RSS](/packages/erykai-upload/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)DependenciesVersions (15)Used By (1)

upload
======

[](#upload)

[![Maintainer](https://camo.githubusercontent.com/8d0c30a6e6bb0e588086373acb7d3cb9c1ff2135f91a52d1a7a99a8670aa1090/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d40616c657864656f766964616c2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://instagram.com/alexdeovidal)[![Source Code](https://camo.githubusercontent.com/3f8494d29044d9f5b3f2a84582f8b2965de8d45a815e3ae8dde835301eaad8af/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d6572796b61692f75706c6f61642d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/erykai/upload)[![PHP from Packagist](https://camo.githubusercontent.com/61cf81e002cb27949a55172040b8d0c826e064940a03b84fb20013c4e478c5ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6572796b61692f75706c6f61642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/erykai/upload)[![Latest Version](https://camo.githubusercontent.com/a43fe87ef25899524f4c5422ef47a18337534e1301ab07b8349ebd315ae0c03d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6572796b61692f75706c6f61642e7376673f7374796c653d666c61742d737175617265)](https://github.com/erykai/upload/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Quality Score](https://camo.githubusercontent.com/5c1a98362cf8011e4dc0211ec4200ab8fe182bd0ebb280283649bc8469504bc8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6572796b61692f75706c6f61642e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/erykai/upload)[![Total Downloads](https://camo.githubusercontent.com/61d34df55648b37e354dc0704f8a572fa519a16aae0c4824f84c6fc5b2a3e491/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6572796b61692f75706c6f61642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/erykai/upload)

Upload media, files, images and upload url

[![Video Documentation](https://camo.githubusercontent.com/35c88b0a7eebde95e71a7514aaafc0d3d5982f9f14a580a16dbc8623b06a8b4c/68747470733a2f2f692e7974696d672e636f6d2f616e5f776562702f447759695a3047474853672f6d7164656661756c745f36732e776562703f64753d33303030267371703d434b4332314a73472672733d414f6e34434c43457575596e43326c726f6b525543785f64694941764266642d4267)](https://youtu.be/DwYiZ0GGHSg)

Installation
------------

[](#installation)

Composer:

```
"erykai/upload": "1.2.*"
```

Terminal

```
composer require erykai/upload
```

Create config.php

```
//define name folder uploads system
const UPLOAD_DIR = 'storage';
//define mimetypes accepts
const UPLOAD_MIMETYPE = [
    'image/jpeg',
    'image/gif',
    'image/png',
    'image/svg+xml',
    'audio/mpeg',
    'video/mp4',
    'application/msword',
    'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
    'application/pdf'
];
```

Upload $\_FILES

```
require "config.php";
require "vendor/autoload.php";

use Erykai\Upload\Upload;
$upload = new Upload();
$upload->save();
print_r($upload->response());
```

Upload $\_POST url

```
require "config.php";
require "vendor/autoload.php";

use Erykai\Upload\Upload;
$upload = new Upload($_POST['cover'], 'cover');
$upload->save();
print_r($upload->response());
```

Upload url

```
require "config.php";
require "vendor/autoload.php";

use Erykai\Upload\Upload;
$upload = new Upload('https://web.com/pdf.pdf', 'document');
$upload->save();
print_r($upload->response());
```

Create object and delete

```
if($upload->save()){
        $user = new stdClass();
            foreach ($upload->response()->data as $key => $value) {
                $user->$key = $value;
                $file = true;
            }
        }
        //case delete
        if($file){
           $upload->delete();
           print_r($upload->response());
        }
```

Delete image

```
$upload->delete("storage/image/2022/08/10/imagem.jpg");
print_r($upload->response());
```

Contribution
------------

[](#contribution)

All contributions will be analyzed, if you make more than one change, make the commit one by one.

Support
-------

[](#support)

If you find faults send an email reporting to .

Credits
-------

[](#credits)

- [Alex de O. Vidal](https://github.com/alexdeovidal) (Developer)
- [All contributions](https://github.com/erykai/upload/contributors) (Contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License](https://github.com/erykai/upload/LICENSE) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~7 days

Total

14

Last Release

1278d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/erykai-upload/health.svg)

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

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

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

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15161.6M2.6k](/packages/illuminate-filesystem)[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)[madnest/madzipper

Easier zip file handling for Laravel applications.

1382.3M6](/packages/madnest-madzipper)

PHPackages © 2026

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