PHP code example of lamhotsimamora / watermark
1. Go to this page and download the library: Download lamhotsimamora/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/ */
lamhotsimamora / watermark example snippets
use Lamhotsimamora\Watermark\WatermarkBuilder;
$watermark = new WatermarkBuilder();
// watermark and image must be png format
$watermark->loadWatermark('images/watermark.png');
$watermark->loadImage('images/car.png');
echo $watermark->processing();