Download the PHP package wulacms/media without Composer

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

多媒体模块

给第三方模块提供文件上传服务,使用本模块上传的图片需要注意:

  1. 在模板中需要通过media修改器输出文件链接.
  2. 在代码里刚需要通过the_media_src获取文件链接.
  3. 在js中可以通过wulauimedia函数获取文件链接.

文件上传器

通过不同的文件上传器可以将文件上传到不同的服务器。只需要实现IUploader接口,并通过media\regUploaders注册.

例如实现一个叫MyUploader的文件上传器:

实现类

注册

设置

系统 > 设置 > 媒体库设置里选择『我的文件上传器』即可。

内置文件上传器

  1. LocaleUploader 本地文件上传器,它将文件上传到当前服务器(无需配置)。
  2. FtpUploader FTP文件上传器,它将文件上传到FTP服务器,使用它之前,请配置以下参数:
    • path FTP端路径,可以没有
    • host FTP服务器主机, 默认是localhost
    • port FTP服务器端口,默认是25.
    • user FTP用户名,默认是ftp
    • password 用户密码,默认是空
    • timeout 超时
    • passive 被动模式,默认否

媒体服务器域名

当通过文件上传器将文件上传到不同服务器时,请设置媒体服务器域名,否则文件有可能不可访问哦。

自己控制文件上传

在你的控制器里使用Plupload Trasit,并完成相应的代码即可自行控制文件上传, 具体可以参考本模块的InsControolerUploadControllerWatermarkController三个控制器。


All versions of media with dependencies

PHP Build Version
Package Version
Requires wula/wula-installer 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 wulacms/media contains the following files

Loading the files please wait ....