Download the PHP package themismin/laravel-admin-ext-cos without Composer

On this page you can find all versions of the php package themismin/laravel-admin-ext-cos. 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-admin-ext-cos

laravel-admin-ext-cos

腾讯云 COS 浏览器分片直传组件,适用于 encore/laravel-admin。

安装

扩展会自动注册 cosupload 表单字段。旧项目也可以在 app/Admin/bootstrap.php 中显式注册:

环境变量

字段类型

默认规则:

字段可覆盖默认限制:

未调用 image()、video() 或 file() 的旧字段保持无限制。

上传安全

PJAX 导航兼容

从 v1.2.0 开始,扩展已原生支持 PJAX 导航后的组件重新初始化。

Laravel-admin 使用 PJAX 实现无刷新页面导航。在列表页点击编辑按钮进入编辑页时, 页面内容通过 AJAX 加载,但依赖 $(document).ready() 初始化的组件(如 COS 上传按钮) 不会自动重新初始化,导致组件不渲染。

工作原理

  1. 扩展自动加载 field-init.js,提供全局初始化函数 window.initCosUploadField()
  2. 字段配置数据存储在 HTML 元素的 data-cos-config 属性中
  3. 在 PJAX 完成事件 (pjax:complete) 后,可以从 data-cos-config 读取配置并重新初始化

PJAX 重新初始化示例

在自定义的 pjax-reinit.js 中:

这样从列表页点击编辑按钮进入页面时,COS 上传组件能正常渲染,无需手动刷新页面。


All versions of laravel-admin-ext-cos with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
encore/laravel-admin Version ~1.6
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 themismin/laravel-admin-ext-cos contains the following files

Loading the files please wait ...