Download the PHP package niweisi/php-poster without Composer

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

poster

介绍

PHP 图片合成、生成海报、图片添加水印、生成二维码,合成二维码

合成gif图片

压缩html文件

安装教程

  1. composer require niweisi/php-poster

  2. composer update niweisi/php-poster

使用说明

  1. *

    • [buildIm 创建画布]
    • @Author lang
    • @DateTime 2020-08-14T20:52:41+0800
    • @param number $w [ 画布宽 ]
    • @param number $h [ 画布高 ]
    • @param array $rgba [ 颜色rbga ]
    • @param boolean $alpha [ 是否透明 ]
    • [buildImDst 创建指定图片为画布]
      • @Author lang
      • @DateTime 2020-08-15T11:14:48+0800
      • @param [src] $src [ 图像资源 ]
      • @param integer $w [description]
      • @param integer $h [description]
      • @param array $rgba [description]
      • @param boolean $alpha [description]
      • @return [type] [description]
    • [buildImage 合成图片]
      • @Author lang
      • @DateTime 2020-08-14T20:52:41+0800
      • @param [string] $src [ 路径,支持网络图片(带http或https) ]
      • @param number $dst_x [ 目标x轴 特殊值 center 居中 支持百分比20% 支持自定义 支持正负 ]
      • @param number $dst_y [ 目标y轴 特殊值 center 居中 支持百分比20% 支持自定义 支持正负 ]
      • @param number $src_x [ 图片x轴 ]
      • @param number $src_y [ 图片y轴 ]
      • @param number $src_w [ 图片自定义宽 ]
      • @param number $src_h [ 图片自定义高 ]
      • @param boolean $alpha [ 是否透明 是 true ]
      • @param string $type [ 图片变形类型 'normal' 正常形状 'circle' 圆形 ]
      • @return array [ 返回相对路径,数组 ]
    • [buildQr description] 合成二维码
      • @Author lang
      • @Date 2020-10-14T12:14:06+0800
      • @param [type] $text [内容]
      • @param integer $dst_x [目标位置x] 特殊值 center 居中 支持百分比20% 支持自定义 支持正负
      • @param integer $dst_y [目标位置y] 特殊值 center 居中 支持百分比20% 支持自定义 支持正负
      • @param integer $src_x [图片x轴]
      • @param integer $src_y [图片y轴]
      • @param integer $size [大小]
      • @param integer $margin [百变大小]
      • @return [type] [description]
    • [buildText 合成文字]
      • @Author lang
      • @DateTime 2020-08-14T22:09:20+0800
      • @param [type] $content [description]
      • @param integer $dst_x [description]
      • @param integer $dst_y [description]
      • @param integer $font [ 字体大小 ]
      • @param array $rgba [ 颜色rbga ]
      • @param integer $max_w [ 最大换行宽度 ]
      • @param string $font_family [ 字体,可不填,有默认 (相对路径为项目根目录) ]
      • @return [type] [description]
    • [getPoster 获取合成后图片文件地址]
      • @Author lang
      • @DateTime 2020-08-16T15:45:57+0800
      • @return [array] [返回文件地址]
    • [setPoster 处理图片,需要传原图片]
      • @Author lang
      • @Date 2020-08-17T15:55:31+0800
    • [Qr 生成二维码]
      • @Author lang
      • @Date 2020-10-14T10:59:28+0800
      • @param [type] $text [二维码包含的内容,可以是链接、文字、json字符串等等]
      • @param [type] $outfile [默认为false,不生成文件,只将二维码图片返回输出;否则需要给出存放生成二维码图片的文件名及路径]
      • @param [type] $level [容错级别,默认为L]
      • 可传递的值分别是L(QR_ECLEVEL_L,7%)、M(QR_ECLEVEL_M,15%)、Q(QR_ECLEVEL_Q,25%)、H(QR_ECLEVEL_H,30%)。
      • 这个参数控制二维码容错率,不同的参数表示二维码可被覆盖的区域百分比,也就是被覆盖的区域还能识别
      • @param [type] $size [控制生成图片的大小,默认为4]
      • @param [type] $margin [控制生成二维码的空白区域大小]
      • @param [type] $saveandprint [保存二维码图片并显示出来,$outfile必须传递图片路径]
      • @return [type] [description]

静态调用

合成gif图片

压缩html文件


All versions of php-poster with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
ext-gd Version *
ext-mbstring Version *
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 niweisi/php-poster contains the following files

Loading the files please wait ....