PHPackages                             yasinkose/file-handler - 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. yasinkose/file-handler

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

yasinkose/file-handler
======================

A file handler

1.2.0(4y ago)091MITPHPPHP &gt;=7.4

Since Nov 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/YasinKose/file-handler)[ Packagist](https://packagist.org/packages/yasinkose/file-handler)[ RSS](/packages/yasinkose-file-handler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (5)Used By (0)

File Handler
============

[](#file-handler)

[![Packagist](https://camo.githubusercontent.com/5eb5c15f3a54277dcdd96e2cd2893c6b2b876783401d99b3355874fcf5964aca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f796173696e6b6f73652f66696c652d68616e646c65722e737667)](https://packagist.org/packages/yasinkose/file-handler)[![Packagist](https://camo.githubusercontent.com/1c5d8916e0295e0780589a135b0fc30a47d9a485ae49a7f604f6127d57c59153/68747470733a2f2f706f7365722e707567782e6f72672f796173696e6b6f73652f66696c652d68616e646c65722f642f746f74616c2e737667)](https://packagist.org/packages/yasinkose/file-handler)[![Packagist](https://camo.githubusercontent.com/53ac52fb998e06f402bbfa4fdfd606f42b24e71fb21e6946f34d04592394c00b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f796173696e6b6f73652f66696c652d68616e646c65722e737667)](https://packagist.org/packages/yasinkose/file-handler)

Description
===========

[](#description)

You can send your files to remote server application ([YasinKose/lumen-file-storage-service](https://github.com/YasinKose/lumen-file-storage-service)) using this repository.

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

[](#installation)

Install via composer

```
composer require yasinkose/file-handler
```

Add the following to your .env file

```
FILE_HANDLER_URL=https://***.com/
FILE_HANDLER_API_KEY=api_key
FILE_HANDLER_TABLE_NAME=files

```

Publish package assets
----------------------

[](#publish-package-assets)

If you are using **Laravel** run this command

```
php artisan vendor:publish --provider="YasinKose\FileHandler\ServiceProvider"
```

or if you're using **Lumen**, Add the following snippet to the `bootstrap/app.php` file under the providers section as follows:

```
$app->register(YasinKose\FileHandler\ServiceProvider::class);
```

Usage
-----

[](#usage)

Here's how you can send files:

```
FileHandler::sendFile($request->allFiles());
```

OR

```
FileHandler::addFile($request->allFiles())->sendFile();
```

OR

```
$file = new FileHandler();
$file->sendFile($request->allFiles());
```

Here's the response you'll get

```
Array
(
    [0] => stdClass Object
        (
            [original_name] => screenshot_1.png
            [slug] => lHVRttkrqM
            [url] => https://***.com/file/lHVRttkrqM
        )

    [1] => stdClass Object
        (
            [original_name] => screenshot_2.png
            [slug] => kC8Svz0njs
            [url] => https://***.com/file/kC8Svz0njs
        )
)

```

Security
--------

[](#security)

If you discover any security related issues, please email instead of using the issue tracker.

Contributors ✨
--------------

[](#contributors-)

Thanks goes to these people:

- [Yasin Köse](https://github.com/yasinkose/file-handler)
- [All contributors](https://github.com/yasinkose/file-handler/graphs/contributors)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Every ~0 days

Total

4

Last Release

1619d ago

PHP version history (2 changes)1.0PHP &gt;=7.2

1.2.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f68e405505c0ffafdb394cde4d31826c3ad7787e65bf7d6dbadc211df180711?d=identicon)[YasinKose](/maintainers/YasinKose)

---

Top Contributors

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

---

Tags

filehandler

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yasinkose-file-handler/health.svg)

```
[![Health](https://phpackages.com/badges/yasinkose-file-handler/health.svg)](https://phpackages.com/packages/yasinkose-file-handler)
```

###  Alternatives

[unisharp/laravel-filemanager

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

2.2k3.3M73](/packages/unisharp-laravel-filemanager)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[soarecostin/file-vault

192195.0k](/packages/soarecostin-file-vault)[djurovicigoor/lara-files

Lara-files is a package which will make it easier to work with files. Package has built-in support for DigitalOcean spaces and Amazon S3.

1196.5k](/packages/djurovicigoor-lara-files)[joseluisq/gimage

A PHP library for easy image handling.

1523.7k](/packages/joseluisq-gimage)[unisharp/laravel-fileapi

Laravel File API - Handle Files with Laravel Storage

5345.3k](/packages/unisharp-laravel-fileapi)

PHPackages © 2026

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