Download the PHP package maxlcoder/laravel-oss without Composer

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

laravel-oss

配置

配置文件在 config/oss.php 文件中,内容如下:

重点配置说明

endpoint_upload: 表示和阿里云进行 API 交互的域名,形如 oss-cn-hangzhou.aliyuncs.com,例如文件上传,相关设置之类。注意这里如果是纯后端和 OSS 交互,且服务是部署在阿里云上,这里可以考虑使用内网域名

endpoint: 文件域名通常作为文件下载的预览的地址域名,通常使用 bucket 域名,形如 https://[buckent-name].oss-cn-hangzhou.aliyuncs.com,如果是不想暴露 bucket 域名也可以使用自定义域名。

域名支持情况

域名 endpoint_upload 上行(API 交互) endpoint 下行(文件下载预览)
地域域名(oss-cn-hangzhou.aliyuncs.com) 支持 不支持
bucket 域名(https://[buckent-name].oss-cn-hangzhou.aliyuncs.com 支持 支持
自定义域名(https://xxx.xxx.com 支持 支持

因此这里保留两个 endpoint 配置,便于支持各种情况

path: 考虑到单个 bucket 既作为开发环境,又作为生成环境,提供一个 bucket 下的顶层目录来区分不同环境下产生的文件。如果不同环境有不同的 bucket 或者不区分环境,该配置可以忽略

方法

服务端上传加密签名

$dir 设置文件前缀,防止文件重复,未传值时,系统默认使用 日期+uuid+随机码 进行文件前缀防止重复
$maxSize 最大支持的上传文件大小(字节数)

返回参数


All versions of laravel-oss with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version ^9.0
aliyuncs/oss-sdk-php Version ^2.7
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 maxlcoder/laravel-oss contains the following files

Loading the files please wait ....