Giter Club home page Giter Club logo

download-zip's Introduction

zzyc-supply-download-zip

zzyc-supply-download-zip是中泽云仓官方SDK的Composer封装,支持php项目的中台商品打包下载。

安装

  • 通过composer,这是推荐的方式,可以使用composer.json 声明依赖,或者运行下面的命令。
$ composer require zzyc-supply/download-zip
  • 直接下载安装,SDK 没有依赖其他第三方库,但需要参照 composer的autoloader,增加一个自己的autoloader程序。

运行环境

php: >=7.0

使用方法

	/**
     * Created by PhpStorm.
     * User: Zzyc
     * Date: 2022/4/17
     * Time: 2:04 PM
     */
    
    use Zzyc\Zip\zipTool;

    /**
     * 为图像添加图片水印
     *
     * @param 参数1 原图
     * @param 参数2 需要添加的水印图片
     * @param 参数3 要添加的位置,默认是0,有10个位置可选(0,1,2,3,4,5,6,7,8,9)
     * @param 参数4 透明度 默认100
     * @param 参数5 增加完水印的图片的前缀
     * @param 参数6 是否保存图片(0-》保存,1-》浏览器输出)
     */
    $imgTool1 = new zipTool('examples/water/');
    $image1 = '/examples/imgs/123456.jpg';
    $waterImg = '/examples/imgs/water.png';
	echo $imgTool1->addWater($image1,$waterImg,0,100,'water_',0);

供应链平台

官网网址 https://www.xzwl1688.com/

浙江中台H5网址 https://zj.center.xzwl1688.com/

安徽中台H5网址 https://ah.center.xzwl1688.com/

江西中台H5网址 https://jx.center.xzwl1688.com/

download-zip's People

Contributors

huidaoli avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.