Commit 042ed950 by lujunyi

引入腾讯云cos

parent dd6f3c10
......@@ -15,10 +15,10 @@
"laravel/helpers": "^1.6",
"laravel/sanctum": "^3.3",
"laravel/tinker": "^2.8",
"overtrue/laravel-filesystem-cos": "^3.5",
"overtrue/laravel-query-logger": "^3.1",
"predis/predis": "^2.2",
"sparkinzy/dcat-viewer": "^1.0",
"iidestiny/laravel-filesystem-oss": "^3.0"
"sparkinzy/dcat-viewer": "^1.0"
},
"require-dev": {
"barryvdh/laravel-ide-helper": "^2.13",
......
......@@ -4,54 +4,9 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "6a1b228f8f35ab053eebf9b14b78c491",
"content-hash": "968a505b5ea9d58508587d9085546d77",
"packages": [
{
"name": "aliyuncs/oss-sdk-php",
"version": "v2.7.2",
"source": {
"type": "git",
"url": "https://github.com/aliyun/aliyun-oss-php-sdk.git",
"reference": "483dd0b8bff5d47f0e4ffc99f6077a295c5ccbb5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/aliyun/aliyun-oss-php-sdk/zipball/483dd0b8bff5d47f0e4ffc99f6077a295c5ccbb5",
"reference": "483dd0b8bff5d47f0e4ffc99f6077a295c5ccbb5",
"shasum": ""
},
"require": {
"php": ">=5.3"
},
"require-dev": {
"php-coveralls/php-coveralls": "*",
"phpunit/phpunit": "*"
},
"type": "library",
"autoload": {
"psr-4": {
"OSS\\": "src/OSS"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Aliyuncs",
"homepage": "http://www.aliyun.com"
}
],
"description": "Aliyun OSS SDK for PHP",
"homepage": "http://www.aliyun.com/product/oss/",
"support": {
"issues": "https://github.com/aliyun/aliyun-oss-php-sdk/issues",
"source": "https://github.com/aliyun/aliyun-oss-php-sdk/tree/v2.7.2"
},
"time": "2024-10-28T10:41:12+00:00"
},
{
"name": "box/spout",
"version": "v3.3.0",
"source": {
......@@ -1858,111 +1813,6 @@
"time": "2023-12-03T19:50:20+00:00"
},
{
"name": "iidestiny/flysystem-oss",
"version": "4.3",
"source": {
"type": "git",
"url": "https://github.com/iiDestiny/flysystem-oss.git",
"reference": "15447c3367cb8a36a64bc2881c13ee2b6ae3fa26"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/iiDestiny/flysystem-oss/zipball/15447c3367cb8a36a64bc2881c13ee2b6ae3fa26",
"reference": "15447c3367cb8a36a64bc2881c13ee2b6ae3fa26",
"shasum": ""
},
"require": {
"aliyuncs/oss-sdk-php": "^2.4",
"ext-curl": "*",
"ext-json": "*",
"ext-openssl": "*",
"league/flysystem": "^3.0",
"php": "^8.0.2"
},
"require-dev": {
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^9.5",
"symfony/var-dumper": "^3.4"
},
"type": "library",
"autoload": {
"psr-4": {
"Iidestiny\\Flysystem\\Oss\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "iidestiny",
"email": "iidestiny@vip.qq.com"
}
],
"description": "Flysystem adapter for the Oss storage.",
"keywords": [
"alioss",
"laravel",
"oss",
"阿里oss"
],
"support": {
"issues": "https://github.com/iiDestiny/flysystem-oss/issues",
"source": "https://github.com/iiDestiny/flysystem-oss/tree/4.3"
},
"time": "2023-09-09T11:59:47+00:00"
},
{
"name": "iidestiny/laravel-filesystem-oss",
"version": "3.3",
"source": {
"type": "git",
"url": "https://github.com/iiDestiny/laravel-filesystem-oss.git",
"reference": "30e788109accab282c106121bf1977754511e973"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/iiDestiny/laravel-filesystem-oss/zipball/30e788109accab282c106121bf1977754511e973",
"reference": "30e788109accab282c106121bf1977754511e973",
"shasum": ""
},
"require": {
"iidestiny/flysystem-oss": "^4.1",
"laravel/framework": "^9.0 | ^10.0",
"php": "^8.0.2"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"Iidestiny\\LaravelFilesystemOss\\OssStorageServiceProvider"
]
}
},
"autoload": {
"psr-4": {
"Iidestiny\\LaravelFilesystemOss\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "iidestiny",
"email": "iidestiny@vip.qq.com"
}
],
"description": "Oss storage filesystem for Laravel.",
"support": {
"issues": "https://github.com/iiDestiny/laravel-filesystem-oss/issues",
"source": "https://github.com/iiDestiny/laravel-filesystem-oss/tree/3.3"
},
"time": "2023-08-25T03:00:39+00:00"
},
{
"name": "laravel/framework",
"version": "v10.48.22",
"source": {
......@@ -3353,6 +3203,127 @@
"time": "2024-10-15T15:27:12+00:00"
},
{
"name": "overtrue/flysystem-cos",
"version": "5.1.12",
"source": {
"type": "git",
"url": "https://github.com/overtrue/flysystem-cos.git",
"reference": "5d5a8cd4855e9eccd0632424e673fc87465314d6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/overtrue/flysystem-cos/zipball/5d5a8cd4855e9eccd0632424e673fc87465314d6",
"reference": "5d5a8cd4855e9eccd0632424e673fc87465314d6",
"shasum": ""
},
"require": {
"league/flysystem": "^3.0",
"overtrue/qcloud-cos-client": "^2.1.4",
"php": ">=8.0.2"
},
"require-dev": {
"laravel/pint": "^1.6",
"league/flysystem-adapter-test-utilities": "^3.0",
"mockery/mockery": "^1.0",
"phpunit/phpunit": "^9.5"
},
"type": "library",
"autoload": {
"psr-4": {
"Overtrue\\Flysystem\\Cos\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "overtrue",
"email": "i@overtrue.me"
}
],
"description": "Flysystem adapter for the QCloud COS storage.",
"support": {
"issues": "https://github.com/overtrue/flysystem-cos/issues",
"source": "https://github.com/overtrue/flysystem-cos/tree/5.1.12"
},
"funding": [
{
"url": "https://github.com/overtrue",
"type": "github"
}
],
"time": "2024-09-19T02:28:37+00:00"
},
{
"name": "overtrue/laravel-filesystem-cos",
"version": "3.5.0",
"source": {
"type": "git",
"url": "https://github.com/overtrue/laravel-filesystem-cos.git",
"reference": "16f1030331969a34eb11c0cd27aa339a4f42f69c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/overtrue/laravel-filesystem-cos/zipball/16f1030331969a34eb11c0cd27aa339a4f42f69c",
"reference": "16f1030331969a34eb11c0cd27aa339a4f42f69c",
"shasum": ""
},
"require": {
"laravel/framework": "^9.0|^10.0|^11.0",
"overtrue/flysystem-cos": "^5.1"
},
"require-dev": {
"brainmaestro/composer-git-hooks": "dev-master",
"laravel/pint": "^1.5",
"mockery/mockery": "^1.0"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"Overtrue\\LaravelFilesystem\\Cos\\CosStorageServiceProvider"
]
},
"hooks": {
"pre-commit": [
"composer check-style"
],
"pre-push": [
"composer check-style"
]
}
},
"autoload": {
"psr-4": {
"Overtrue\\LaravelFilesystem\\Cos\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "overtrue",
"email": "i@overtrue.me"
}
],
"description": "A Cos storage filesystem for Laravel.",
"support": {
"issues": "https://github.com/overtrue/laravel-filesystem-cos/issues",
"source": "https://github.com/overtrue/laravel-filesystem-cos/tree/3.5.0"
},
"funding": [
{
"url": "https://github.com/overtrue",
"type": "github"
}
],
"time": "2024-03-13T05:14:00+00:00"
},
{
"name": "overtrue/laravel-query-logger",
"version": "3.3.0",
"source": {
......@@ -3418,6 +3389,79 @@
"time": "2024-09-26T08:29:21+00:00"
},
{
"name": "overtrue/qcloud-cos-client",
"version": "2.1.6",
"source": {
"type": "git",
"url": "https://github.com/overtrue/qcloud-cos-client.git",
"reference": "5cb1f14dc5d6848c0d899606c0a59e878b836583"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/overtrue/qcloud-cos-client/zipball/5cb1f14dc5d6848c0d899606c0a59e878b836583",
"reference": "5cb1f14dc5d6848c0d899606c0a59e878b836583",
"shasum": ""
},
"require": {
"ext-dom": "*",
"ext-json": "*",
"ext-libxml": "*",
"ext-simplexml": "*",
"guzzlehttp/guzzle": "^7.4",
"php": ">=8.0.2",
"psr/http-message": "^1.0|^2.0",
"thenorthmemory/xml": "^1.0"
},
"require-dev": {
"brainmaestro/composer-git-hooks": "^2.8",
"friendsofphp/php-cs-fixer": "^3.5",
"laravel/pint": "^1.2",
"mockery/mockery": "^1.0",
"monolog/monolog": "^2.5",
"phpunit/phpunit": "^9.5"
},
"type": "library",
"extra": {
"hooks": {
"pre-commit": [
"composer test",
"composer check-style"
],
"pre-push": [
"composer test",
"composer check-style"
]
}
},
"autoload": {
"psr-4": {
"Overtrue\\CosClient\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "overtrue",
"email": "anzhengchao@gmail.com"
}
],
"description": "Client of QCloud.com COS",
"support": {
"issues": "https://github.com/overtrue/qcloud-cos-client/issues",
"source": "https://github.com/overtrue/qcloud-cos-client/tree/2.1.6"
},
"funding": [
{
"url": "https://github.com/overtrue",
"type": "github"
}
],
"time": "2024-09-04T13:58:12+00:00"
},
{
"name": "phpoption/phpoption",
"version": "1.9.3",
"source": {
......@@ -6665,6 +6709,57 @@
"time": "2024-09-25T14:18:03+00:00"
},
{
"name": "thenorthmemory/xml",
"version": "1.1.1",
"source": {
"type": "git",
"url": "https://github.com/TheNorthMemory/xml.git",
"reference": "6f50c63450a0b098772423f8bdc3c4ad2c4c30bb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/TheNorthMemory/xml/zipball/6f50c63450a0b098772423f8bdc3c4ad2c4c30bb",
"reference": "6f50c63450a0b098772423f8bdc3c4ad2c4c30bb",
"shasum": ""
},
"require": {
"ext-libxml": "*",
"ext-simplexml": "*",
"php": ">=7.1.2"
},
"require-dev": {
"phpstan/phpstan": "^0.12.89 || ^1.0",
"phpunit/phpunit": "^7.5 || ^8.5.16 || ^9.3.5"
},
"type": "library",
"autoload": {
"psr-4": {
"TheNorthMemory\\Xml\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "James ZHANG",
"homepage": "https://github.com/TheNorthMemory"
}
],
"description": "A wrapper of the XML parser and builder",
"homepage": "https://github.com/TheNorthMemory/xml",
"keywords": [
"xml-builder",
"xml-parser"
],
"support": {
"issues": "https://github.com/TheNorthMemory/xml/issues",
"source": "https://github.com/TheNorthMemory/xml/tree/1.1.1"
},
"time": "2023-01-15T06:01:13+00:00"
},
{
"name": "tijsverkoyen/css-to-inline-styles",
"version": "v2.2.7",
"source": {
......@@ -8170,23 +8265,23 @@
},
{
"name": "phpdocumentor/type-resolver",
"version": "1.8.2",
"version": "1.9.0",
"source": {
"type": "git",
"url": "https://github.com/phpDocumentor/TypeResolver.git",
"reference": "153ae662783729388a584b4361f2545e4d841e3c"
"reference": "1fb5ba8d045f5dd984ebded5b1cc66f29459422d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/153ae662783729388a584b4361f2545e4d841e3c",
"reference": "153ae662783729388a584b4361f2545e4d841e3c",
"url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/1fb5ba8d045f5dd984ebded5b1cc66f29459422d",
"reference": "1fb5ba8d045f5dd984ebded5b1cc66f29459422d",
"shasum": ""
},
"require": {
"doctrine/deprecations": "^1.0",
"php": "^7.3 || ^8.0",
"phpdocumentor/reflection-common": "^2.0",
"phpstan/phpdoc-parser": "^1.13"
"phpstan/phpdoc-parser": "^1.18"
},
"require-dev": {
"ext-tokenizer": "*",
......@@ -8222,9 +8317,9 @@
"description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
"support": {
"issues": "https://github.com/phpDocumentor/TypeResolver/issues",
"source": "https://github.com/phpDocumentor/TypeResolver/tree/1.8.2"
"source": "https://github.com/phpDocumentor/TypeResolver/tree/1.9.0"
},
"time": "2024-02-23T11:10:43+00:00"
"time": "2024-11-03T20:11:34+00:00"
},
{
"name": "phpstan/phpdoc-parser",
......
......@@ -159,7 +159,7 @@
/*
* Package Service Providers...
*/
Iidestiny\LaravelFilesystemOss\OssStorageServiceProvider::class,
Overtrue\LaravelFilesystem\Cos\CosStorageServiceProvider::class,
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
/*
......
......@@ -56,6 +56,35 @@
'throw' => false,
],
'cos' => [
'driver' => 'cos',
'app_id' => env('COS_APP_ID'),
'secret_id' => env('COS_SECRET_ID'),
'secret_key' => env('COS_SECRET_KEY'),
'region' => env('COS_REGION', 'ap-guangzhou'),
'bucket' => env('COS_BUCKET'), // 不带数字 app_id 后缀
// 可选,如果 bucket 为私有访问请打开此项
'signed_url' => false,
// 可选,是否使用 https,默认 false
'use_https' => true,
// 可选,自定义域名
'domain' => 'emample-12340000.cos.test.com',
// 可选,使用 CDN 域名时指定生成的 URL host
'cdn' => env('COS_CDN'),
'prefix' => env('COS_PATH_PREFIX'), // 全局路径前缀
'guzzle' => [
'timeout' => env('COS_TIMEOUT', 60),
'connect_timeout' => env('COS_CONNECT_TIMEOUT', 60),
],
],
],
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment