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

This package is auto-updated.

Last update: 2024-05-11 14:08:06 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"
]