PHPackages                             mochrira/selvi-files - 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. mochrira/selvi-files

ActiveLibrary

mochrira/selvi-files
====================

Library untuk upload file ke selvi framework

0.1.6(5y ago)070PHP

Since Oct 22Pushed 5y agoCompare

[ Source](https://github.com/mochrira/selvi-files)[ Packagist](https://packagist.org/packages/mochrira/selvi-files)[ RSS](/packages/mochrira-selvi-files/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (1)Versions (8)Used By (0)

Files library
=============

[](#files-library)

This is library to upload and download files with selvi framework.

Requirements
------------

[](#requirements)

- php^7.4
- php\_fileinfo module
- mochrira/selvi-framework^0.3.12

Installing
----------

[](#installing)

```
composer require mochrira/selvi-files

```

Usage
-----

[](#usage)

```
namespace App\Controllers;
use Selvi\Controller;
use Selvi\Files;

class UploadController extends Controller {

    function upload() {
        $this->load(Files::class, 'files');
        $result = $this->files->upload('file', [
            'allowedTypes' => ['image/jpg', 'image/jpeg', 'image/gif'],
            'path' => 'images',
            'maxSize' => 1000000
        ]);
        return jsonResponse($result);
    }

    function download() {
        $uri = $this->uri->getUri();
        if(strpos($uri, '/download') == 0) {
            $uri = preg_replace('/'.preg_quote('/download/', '/').'/', '', $uri, 1);
        }
        $this->load(Files::class, 'files');
        $this->files->download($uri);
    }

}

\Selvi\Files::setup([
    'basePath' => __DIR__.'/files'
]);
\Selvi\Route::post('/upload', 'UploadController@upload');
\Selvi\Route::post('/download', 'UploadController@download');
\Selvi\Framework::run();

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

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

Every ~18 days

Recently: every ~25 days

Total

7

Last Release

1916d ago

### Community

Maintainers

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

---

Top Contributors

[![mochrira](https://avatars.githubusercontent.com/u/3508180?v=4)](https://github.com/mochrira "mochrira (11 commits)")

### Embed Badge

![Health badge](/badges/mochrira-selvi-files/health.svg)

```
[![Health](https://phpackages.com/badges/mochrira-selvi-files/health.svg)](https://phpackages.com/packages/mochrira-selvi-files)
```

PHPackages © 2026

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