ppw/oss_sdk_php

There is no license information available for the latest version (dev-master) of this package.

Ali oss_sdk

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

pkg:composer/ppw/oss_sdk_php

dev-master 2020-05-11 03:14 UTC

This package is auto-updated.

Last update: 2025-12-11 17:34:39 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"
]