Download the PHP package hoga/lah5upload without Composer

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

H5 直传阿里云 oss 扩展

1.使用 composer 安装 hoga/lah5upload 扩展

2.导出资源文件

windows:php artisan vendor:publish --provider=Hoga\lah5upload\lah5uploadServiceProvider

mac|linux:php artisan vendor:publish --provider=Hoga\\lah5upload\\lah5uploadServiceProvider

3.在app/Admin/bootstrap.php添加代码

5.在 form 方法里面使用

$form->lah5upload('url','视频');

设置允许上传扩展的文件

设置 aliyun oss bucket 内的上传路径

关于.env 配置文件

分片上传 最后一个请求报错 One or more of the specified parts could not be found or the specified entity tag might not have matched the part's entity tag 错误

复制代码产生原因 经检查发现 ETag 为 undefined 解决方法 在阿里云 oss 控制台 基础设置 > 跨域规则设置 > 编辑规则 “暴露 Headers” 中增加 ETag 即可解决问题

作者:waanhappy 链接:https://juejin.im/post/5c4412186fb9a049d2365bbc 来源:掘金 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


All versions of lah5upload with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
alibabacloud/sdk Version ^1.8
aliyuncs/oss-sdk-php Version ^2.3
encore/laravel-admin Version ~1.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 hoga/lah5upload contains the following files

Loading the files please wait ....