PHPackages                             siaoynli/laravel-uploads - 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. siaoynli/laravel-uploads

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

siaoynli/laravel-uploads
========================

laravel upload file package

1.0.7(11mo ago)01392MITPHPCI failing

Since Nov 19Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/siaoynli/laravel-uploads)[ Packagist](https://packagist.org/packages/siaoynli/laravel-uploads)[ RSS](/packages/siaoynli-laravel-uploads/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (9)Used By (2)

laravel 上传文件包
=============

[](#laravel-上传文件包)

install
-------

[](#install)

this package for laravel

```
composer require siaoynli/laravel-uploads

```

add the ServiceProvider to the providers array in config/app.php

```
Siaoynli\Upload\UploadServiceProvider::class,

```

If you want to use the facade to log messages, add this to your facades in app.php:

```
 'Upload' => Siaoynli\Upload\Facades\Upload::class,

```

Copy the package config to your local config with the publish command:

```
php artisan vendor:publish --provider="Siaoynli\Upload\UploadServiceProvider"

```

Usage
-----

[](#usage)

```
use Upload;

//upload
$info=Upload::do()
$info=Upload::type("video")->do()

## Result

```

//upload result

array:6 \[▼ "state" =&gt; "SUCCESS" "original\_name" =&gt; "0eb30f2442a7d9337afbe24aa94bd11373f001b3.jpg" "ext" =&gt; "jpg" "mime" =&gt; "image/jpeg" "size" =&gt; 130759 "url" =&gt; "/uploads/image/2019-07-10/b40383942859e40ee1f1eb3dd889e01d9b68dcb5.jpg" \]

//upload error \[ "state"=&gt;"error message" \]

```

> strict mode 值为true，即严格校验文件

```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance52

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

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 ~297 days

Recently: every ~431 days

Total

8

Last Release

337d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7235227?v=4)[西瓜哥](/maintainers/siaoynli)[@siaoynli](https://github.com/siaoynli)

---

Top Contributors

[![siaoynli](https://avatars.githubusercontent.com/u/7235227?v=4)](https://github.com/siaoynli "siaoynli (1 commits)")

### Embed Badge

![Health badge](/badges/siaoynli-laravel-uploads/health.svg)

```
[![Health](https://phpackages.com/badges/siaoynli-laravel-uploads/health.svg)](https://phpackages.com/packages/siaoynli-laravel-uploads)
```

PHPackages © 2026

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