Download the PHP package wtto/ali-oss-storage without Composer

On this page you can find all versions of the php package wtto/ali-oss-storage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ali-oss-storage

Aliyun-oss-storage for Laravel 5+

简体中文 | English

本仓库 Fork 自 jacobcyl/Aliyun-oss-storage 由于作者长时间不更新,所以自己稍微修改下,重新发布。

Aliyun oss filesystem storage adapter for laravel 5. You can use Aliyun OSS just like laravel Storage as usual.
借鉴了一些优秀的代码,综合各方,同时做了更多优化,将会添加更多完善的接口和插件,打造 Laravel 最好的 OSS Storage 扩展

借鉴

依赖

安装

  1. 首先运行下面命令来给你的Laravel项目安装依赖:

  2. 然后你需要在配置文件config/app.php中,添加下边的代码来引用依赖:

配置

  1. 添加下边的代码到配置文件app/filesystems.php中:

  2. 然后在文件 .env 中配置你的相关信息:

    注意: 如果你的服务器和你的 OSS Bucket 不在同一个区域的话,请务必不要配置 ALIOSS_ENDPOINT_INTERNAL。

    如果配置了 ALIOSS_ENDPOINT_INTERNAL,那么传输将使用阿里云内网,无论是否配置 ALIOSS_CNAME 和 ALIOSS_DOMAIN。

    传输优先级: ALIOSS_ENDPOINT_INTERNAL > ALIOSS_CNAME=true && ALIOSS_DOMAIN > ALIOSS_ENDPOINT。

    好了,这些你就配置完成了。现在你可以像Laravel Storage一样使用 Aliyun OSS 了。

使用

查看 Larave doc for Storage, 或者你可以按照下边的方式使用:

  1. 首先在文件开始位置引用Laravel Storage

  2. 然后你就可以使用Laravel StorageAPI

文档

更多开发文档请查看 Aliyun OSS DOC

许可

源代码是根据 MIT 许可证发布的。有关详细信息,请阅读许可证文件。


All versions of ali-oss-storage with dependencies

PHP Build Version
Package Version
Requires aliyuncs/oss-sdk-php Version ~2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wtto/ali-oss-storage contains the following files

Loading the files please wait ....