PHPackages                             abdilltmvn/yii2-cuploadabdiltmvn - 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. abdilltmvn/yii2-cuploadabdiltmvn

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

abdilltmvn/yii2-cuploadabdiltmvn
================================

purpose for upload file throught different hosts

0179PHP

Since Apr 16Pushed 7y agoCompare

[ Source](https://github.com/abdil1234/yii2-cuploadabdiltmvn)[ Packagist](https://packagist.org/packages/abdilltmvn/yii2-cuploadabdiltmvn)[ RSS](/packages/abdilltmvn-yii2-cuploadabdiltmvn/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Upload a file on different hosts
================================

[](#upload-a-file-on-different-hosts)

Yii2 extension that purpose for upload file through different hosts ( *`particulary for my ordinary task XD; `* )

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist abdilltmvn/yii2-cuploadabdiltmvn "*"

```

or add

```
"abdilltmvn/yii2-cuploadabdiltmvn": "*"

```

to the require section of your `composer.json` file.

USAGE :
-------

[](#usage-)

Once the extension is installed. Prepare required table by execute yii migrate.

```
yii migrate --migrationPath=@abdiltmvn/Cupload/migrations

```

### client side

[](#client-side)

```
use abdiltmvn\Cupload\ClientUpload;

$upload = new ClientUpload([
    'attr' => 'file',
    'url' => 'http://url.test/backend/site/upload',
    'path' => \Yii::getAlias("@common/uploads/file.pdf") //$model->file
]);

\Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;

return $upload->uploadClient()->data; //return json data
```

### server side

[](#server-side)

```
use abdiltmvn\Cupload\ServerUpload;

$serverUpload = new ServerUpload();

\Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;

return [
    'dataUpload' => $serverUpload->uploadServer()
]; // return json data
```

TODO
----

[](#todo)

- Add more documentation
- Release to stable version ( *`still experimental`* )

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

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/ed4fa5cedd25eb95d5855ed0e5723d7dd617f6001ded168ccf90b2c11710015f?d=identicon)[abdil1234](/maintainers/abdil1234)

---

Top Contributors

[![abdil1234](https://avatars.githubusercontent.com/u/31970269?v=4)](https://github.com/abdil1234 "abdil1234 (36 commits)")

### Embed Badge

![Health badge](/badges/abdilltmvn-yii2-cuploadabdiltmvn/health.svg)

```
[![Health](https://phpackages.com/badges/abdilltmvn-yii2-cuploadabdiltmvn/health.svg)](https://phpackages.com/packages/abdilltmvn-yii2-cuploadabdiltmvn)
```

PHPackages © 2026

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