PHP code example of wuliaowyh / alioss
1. Go to this page and download the library: Download wuliaowyh/alioss 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/ */
wuliaowyh / alioss example snippets
// $object为oss对象名,如 image/a.jpg
$url = Oss::url($object);
// $object为oss对象名,如 image/a.jpg; $path为本地服务器路径
$url = Oss::saveObjTo($object, $path);