Download the PHP package medz/oss-stream-wrapper without Composer

On this page you can find all versions of the php package medz/oss-stream-wrapper. 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 oss-stream-wrapper

Aliyun OSS support streamWrapper. (&Aliyun OSS SDK for PHP.) 支持OSS自定义流协议操作。

Build Status Scrutinizer Code Quality Latest Stable Version Total Downloads License

概述

看名字就知道,这个包住要实现了oss的流协议封装,因为是基于官方sdk,也包含了官方sdk的全部功能,应该说,这个包,是在官方的sdk基础上增加流协议功能。

sdk文档

Aliyun OSS SDK

Composer

别名包

Demo

到了这一步,已经成功的注册了流协议,我们来看看怎么使用吧,先来个最简单的写入文件:

很简单吧?如此以来就可以使用原生的文件操作函数或者类来操作oss上的object了~

案例:如何在symfony/finder中使用自定义流协议。

首先我说一点,我们都知道,finder组件是可以支持s3等云存储的,没错,finder本身不支持云存储,而是通过自定义流协议完成的,这个在组件文档中有例子,我们来看看在oss中怎么使用它。

这样,我们就遍历出了在demo目录下存在的文件了。

更多

如果你觉得,这个是自定义协议流的很好案例,但是你却不知道具体需要实现什么方法,没关系,你只需要依赖一个只包含一个接口类的组件,继承它,实现里面的方法,就可以完成你的自定义流协议。

组件:medz/stream-wrapper-interface

License

MIT


All versions of oss-stream-wrapper with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
medz/stream-wrapper-interface Version ^1.0
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 medz/oss-stream-wrapper contains the following files

Loading the files please wait ....