1. Go to this page and download the library: Download zyan/url2pic-sdk 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/ */
zyan / url2pic-sdk example snippets
use Zyan\UrlToPic\UrlToPic;
$key = '通信密钥';
$app = new UrlToPic($key);
$app->url2pic('http://www.baidu.com');
//code
//$app->url2pic(string $url, string $type = 'jpg', int $width = 1440, int $timeout = 30)