Download the PHP package janfish/storage without Composer

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

中央储存服务

背景

客户端程序

注入phalcon

参数 类型 默认值 说明
version string default 版本,GridFs和default分别使用两种存储方式,不填写默认为default
api string 服务地址http
appId string 访问凭证ID
appSecret string 访问凭密码
imagePrefix string CDN地址
pathType string WEEK 生成日期文件的类型WEEK DAY MONTH
tag string 定义私有根目录,需要服务端开通可以使用的TAG
allowed array 允许上传的文件格式,数组默认图片的mime信息,需要小于等于服务端的设置
maxSize int 允许上传的文件大小,单位mb,需要小于服务端的设置
gzip boolean true 传输开启gzip压缩

DEV测试api参数为

调用上传

单文件上传

指定文件后缀

服务端会先使用文件后缀,如果文件没有后缀,可以通过setFile的第二参数指定后缀,如果也无,服务器会尝试使用上传文件的MIME信息判断可能的对应文件后缀

返回的数据

指定tag上传

批量上传

这里无法指定文件后缀,所以设置的上传文件最好本身带有后缀

返回的数据

本地约束限制设置(服务端针对appid也有限制,权限应该在服务端的限制之下)

删除文件

调用地址

获取CDN地址

上传接口返回的path一般本地存取,通过拼装函数获得最终CDN地址

输出数据

图片在线裁剪(需要CDN支持)


All versions of storage with dependencies

PHP Build Version
Package Version
Requires ext-curl Version *
php Version >=7.0.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 janfish/storage contains the following files

Loading the files please wait ....