PHPackages                             junliuxian/ali-oss-storage - 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. [Framework](/categories/framework)
4. /
5. junliuxian/ali-oss-storage

Abandoned → [illusionist/flysystem-aliyun-oss](/?search=illusionist%2Fflysystem-aliyun-oss)Library[Framework](/categories/framework)

junliuxian/ali-oss-storage
==========================

aliyun oss file system storage for laravel 5+

2.0.0(8y ago)31.1kMITPHPPHP &gt;=7.0

Since Jan 31Pushed 8y ago1 watchersCompare

[ Source](https://github.com/kaysonwu/ali-oss-storage)[ Packagist](https://packagist.org/packages/junliuxian/ali-oss-storage)[ RSS](/packages/junliuxian-ali-oss-storage/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (3)Used By (0)

Summary
=======

[](#summary)

[中文说明](https://github.com/junliuxian/ali-oss-storage/blob/master/README_zh-CN.md)

This project is [jacobcyl/Aliyun-oss-storage 2.0.4](https://github.com/jacobcyl/Aliyun-oss-storage) optimized derivative version. Let it support `Lumen` well.

Install
=======

[](#install)

- Use `composer` to quickly install

    - php 7.0 &gt;=

    ```
    composer require junliuxian/ali-oss-storage:~2.0

    ```

    - php 5.5 &gt;=

    ```
    composer require junliuxian/ali-oss-storage:~1.0

    ```
- in your `config/filesystems.php` copy `config/oss.php` to `disks` array:

    ```
    'disks' => [
        // ...

        'oss'   => [
            // config/oss.php
        ]
    ]

    ```
- Then set the default driver in `config/filesystems.php`

    ```
    'default' => 'oss'

    ```
- Registration service provider

    - `laravel`: in your `config/app.php` add this line to `providers` array:

        ```
        'providers' => [
            // ...
            Junliuxian\AliOSS\AliOssServiceProvider::class,
        ]

        ```
    - `lumen`: in your `bootstrap/app.php` add this line

        ```
        $app->register(Junliuxian\AliOSS\AliOssServiceProvider::class);

        ```

Config
======

[](#config)

nametypedescriptionaccess\_idstringAliyun OSS AccessKeyIdaccess\_keystringAliyun OSS AccessKeySecretbucketstringAliyun OSS bucket nameendpointstringAliyun OSS extranet node or custom external domain nameendpoint\_internalstringAliyun OSS intranet nodeprefixstringpath prefixdomainstringCustom domain name bindingsslbooleanenabled or disabled SSLdebugbooleanWhether to open Debug modeAPI
===

[](#api)

```
Storage::disk('oss'); // if default filesystems driver is oss, you can skip this step

//fetch all files of specified bucket(see upond configuration)
Storage::files($directory);
Storage::allFiles($directory);

Storage::put('path/to/file/file.jpg', $contents); //first parameter is the target file path, second paramter is file content
Storage::putFile('path/to/file/file.jpg', 'local/path/to/local_file.jpg'); // upload file from local path

Storage::get('path/to/file/file.jpg'); // get the file object by path
Storage::exists('path/to/file/file.jpg'); // determine if a given file exists on the storage(OSS)
Storage::size('path/to/file/file.jpg'); // get the file size (Byte)
Storage::lastModified('path/to/file/file.jpg'); // get date of last modification

Storage::directories($directory); // Get all of the directories within a given directory
Storage::allDirectories($directory); // Get all (recursive) of the directories within a given directory

Storage::copy('old/file1.jpg', 'new/file1.jpg');
Storage::move('old/file1.jpg', 'new/file1.jpg');
Storage::rename('path/to/file1.jpg', 'path/to/file2.jpg');

Storage::prepend('file.log', 'Prepended Text'); // Prepend to a file.
Storage::append('file.log', 'Appended Text'); // Append to a file.

Storage::delete('file.jpg');
Storage::delete(['file1.jpg', 'file2.jpg']);

Storage::makeDirectory($directory); // Create a directory.
Storage::deleteDirectory($directory); // Recursively delete a directory.It will delete all files within a given directory, SO Use with caution please.

// upgrade logs
// new plugin for v2.0 version
Storage::putRemoteFile('target/path/to/file/jacob.jpg', 'http://example.com/jacob.jpg'); //upload remote file to storage by remote url
// new function for v2.0.1 version
Storage::url('path/to/img.jpg') // get the file url

```

Documentation
=============

[](#documentation)

More development detail see [Aliyun OSS DOC](https://help.aliyun.com/document_detail/32099.html?spm=5176.doc31981.6.335.eqQ9dM)

License
=======

[](#license)

Source code is release under MIT license. Read LICENSE file for more information.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

2

Last Release

3023d ago

Major Versions

1.0.0 → 2.0.02018-01-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/54e002767d78036837d5bd9fee6f8b2d0261fd3783d75c34a5589f4674b25974?d=identicon)[kayson](/maintainers/kayson)

---

Top Contributors

[![kaysonwu](https://avatars.githubusercontent.com/u/14865584?v=4)](https://github.com/kaysonwu "kaysonwu (3 commits)")

---

Tags

frameworklaravellumenaliyunoss

### Embed Badge

![Health badge](/badges/junliuxian-ali-oss-storage/health.svg)

```
[![Health](https://phpackages.com/badges/junliuxian-ali-oss-storage/health.svg)](https://phpackages.com/packages/junliuxian-ali-oss-storage)
```

###  Alternatives

[laravel/lumen-framework

The Laravel Lumen Framework.

1.5k26.2M709](/packages/laravel-lumen-framework)[laravel-lang/publisher

Localization publisher for your Laravel application

2167.7M24](/packages/laravel-lang-publisher)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[saad/api-debugger

Easily debug your JSON API.

1170.1k](/packages/saad-api-debugger)

PHPackages © 2026

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