PHPackages                             victtech/ossplugin - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. victtech/ossplugin

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

victtech/ossplugin
==================

:package\_description

1.0.9(3y ago)120MITPHP

Since Nov 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/vt-ryan1/OssPlugin)[ Packagist](https://packagist.org/packages/victtech/ossplugin)[ Docs](https://github.com/victtech/ossplugin)[ RSS](/packages/victtech-ossplugin/feed)WikiDiscussions master Synced today

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

OssPlugin
=========

[](#ossplugin)

\[!\[Latest Version on Packagist\]\[ico-version\]\]\[link-packagist\] \[!\[Total Downloads\]\[ico-downloads\]\]\[link-downloads\] \[!\[Build Status\]\[ico-travis\]\]\[link-travis\] \[!\[StyleCI\]\[ico-styleci\]\]\[link-styleci\]

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

[](#installation)

Via Composer

```
$ composer require victtech/ossplugin
```

Usage
-----

[](#usage)

### 发布配置文件

[](#发布配置文件)

```
$ php artisan vendor:publish --tag=ossplugin.config
```

### 配置文件说明

[](#配置文件说明)

```
ALIYUN_OSS_KEY  //OSS key
ALIYUN_OSS_SEC  //OSS secrite
ALIYUN_OSS_BUCKET //OSS bucket
ALIYUN_OSS_ENDPOINT //OSS endpoint 例如：oss-cn-shanghai.aliyuncs.com，oss-cn-beijing.aliyuncs.com
OSS_FOLADER = //文件存放在oss的目录名称，没有则存放在bucket跟目录下，路径格式:"xxx/xxx/"
ALIYUN_OSS_HOST = //OSS 配置的访问路径，一般是CDN路径，如果没有，则使用oss默认路径
LOCAL_FOLDER //上传存储到本地的目录

```

### 使用方法

[](#使用方法)

```
//$localFilePath 本地文件路径
//$ossFilePath 存放在oss的文件名,如果带路径，则存到配置下的目录下的路径
OssPlugin::uploadFile($localFilePath,$ossFileName)

//$httpUploadFile 前端上传的文件
OssPlugin::uploadFileByFile($httpUploadFile,$ossFileName)

//$httpUploadFile 前端上传的文件
//$filePath 储存在本地的路径及文件名
//此方法会把所有文件都存放到pulbic目录下
OssPlugin::uploadToLocal($httpUploadFile,&$filePath);

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

7

Last Release

1096d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/27496656?v=4)[vt-ryan1](/maintainers/vt-ryan1)[@vt-ryan1](https://github.com/vt-ryan1)

---

Top Contributors

[![vt-ryan1](https://avatars.githubusercontent.com/u/27496656?v=4)](https://github.com/vt-ryan1 "vt-ryan1 (12 commits)")

---

Tags

laravelOssPlugin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/victtech-ossplugin/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M10](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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