Skip to content

收集PHP工具类,VarAccess,ShortUrl,ImageWatermark(most smart image watermark class)

License

Notifications You must be signed in to change notification settings

Zjmainstay/php-utility-class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-utility-class

收集PHP工具类

安装

  1. git clone https://github.com/Zjmainstay/php-utility-class.git vendor/php-utility-class

  2. add autoload into composer.json

    "autoload": {
          "psr-4": {
              "PhpUtility\\": "vendor/php-utility-class/src"
          }
    }
    
  3. composer dump-autoload

  4. use class like $imageWatermark = new PhpUtility\ImageWaterMark;

VarAccess

从数组中获取键值,支持特殊字符分隔的多维数组,默认键值分隔符为英文逗号,不存在则返回默认值。 可以更智能地处理数组取值,免去isset()判断及可能产生的Notice错误。

ShortUrl

利用百度短网址 http://dwz.cn 生成短地址工具类

ImageWatermark

图像添加水印工具类,支持水印位置、水印透明度设置

Demo: watermark demo

CurlAutoLogin

利用curl信息自动解析实现模拟登录( 模拟登录已作为独立项目,请参考:https://github.com/Zjmainstay/php-curl

Demo: CurlAutoLogin demo

Base64Fix

通过数组补位,去除base64产生的末尾等号

About

收集PHP工具类,VarAccess,ShortUrl,ImageWatermark(most smart image watermark class)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages