PHP code example of ller / watermark

1. Go to this page and download the library: Download ller/watermark library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ller / watermark example snippets



  use Ller\WaterMark\Water;
  
  //接收上传图片
  $data['target_img'] = $_FILES['img'];
  
  //图片加后缀之后新的名称
  $data['new_name'] = 'a';
  
  //新图片存放地址
  $data['path'] = 'd:/';
  
  new Water($data);