ppw / oss_sdk_php
There is no license information available for the latest version (dev-master) of this package.
Ali oss_sdk
dev-master
2020-05-11 03:14 UTC
Requires
- aliyuncs/oss-sdk-php: ^2.3
- league/flysystem: ^1.0
This package is auto-updated.
Last update: 2025-04-11 16:00:23 UTC
README
$stor = Storage::disk("images");
$filePath = "parking/".Str::random(42).".jpg";
$file = fopen("http://192.168.2.167/ftpdir/pic/Recognize/20200409/192.168.2.168_2020040915453200000_0502.jpg","r");
$filePath = $stor->put($filePath, $file);
在config/filesystems.php中设置链接信息
'images'=>[
'driver' => 'alioss',
'key' => "key",
"secret" => "secret",
"endpoint" => "endpoint",
"isCName" => false,
"securityToken" => NULL,
"requestProxy" => NULL,
"bucket" => "bucket"
]