-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from upyun/feature/v3
Feature/v3
- Loading branch information
Showing
34 changed files
with
2,082 additions
and
832 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
root = true | ||
|
||
[*.php] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.DS_Store | ||
vendor/ | ||
.idea | ||
vendor | ||
composer.lock | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
filter: | ||
paths: | ||
- 'src/*' | ||
- 'tests/*' | ||
|
||
tools: | ||
php_code_sniffer: | ||
config: | ||
standard: PSR4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
language: php | ||
php: | ||
- "5.3" | ||
- "5.4" | ||
- "5.5" | ||
- "5.6" | ||
- "7.0" | ||
before_script: | ||
- composer install | ||
script: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,19 @@ | |
"homepage": "https://github.com/upyun/php-sdk/", | ||
"license": "MIT", | ||
"require": { | ||
"php": ">=5.3.0", | ||
"ext-curl": "*" | ||
"php": ">=5.5.0", | ||
"ext-curl": "*", | ||
"guzzlehttp/guzzle": "~6.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "~4.0" | ||
"phpunit/phpunit": "~4.0", | ||
"phpdocumentor/phpdocumentor": "^2.9" | ||
}, | ||
"autoload": { | ||
"psr-4": { "Upyun\\": "src/Upyun/" } | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { "Upyun\\Tests\\": "tests/" } | ||
}, | ||
"authors": [ | ||
{ | ||
|
@@ -30,8 +38,5 @@ | |
"name": "sabakugaara", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"autoload": { | ||
"files": ["upyun.class.php"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## 客户端上传 | ||
|
||
本示例展示了如何使用表单 API, 直接从客户端进行安全的文件上传, 这种方式不需要客户服务器进行中转, 节省了客户服务器流量, 并且支持 HTTP/HTTPS 两种协议 | ||
|
||
DEMO 使用 `sdkimg` 空间进行演示, 上传成功后, 访问路径为 `http://sdkimg.b0.upaiyun.com/` 拼接保存路径 | ||
|
||
#### 运行示例 | ||
|
||
- `cd examples/client-upload` | ||
- `php -S localhost:9000` | ||
|
||
打开浏览器访问 `http://localhost:9000`, 选则文件上传即可. |
Oops, something went wrong.