Skip to content

Commit 4072ac5

Browse files
wb-hx510875wenzuochao
authored andcommitted
patch ImageSearch php sdk
1 parent fe03c43 commit 4072ac5

26 files changed

+390
-267
lines changed

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
composer.phar
2+
/vendor/
3+
4+
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
5+
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
6+
composer.lock
7+
8+
.idea
9+
.DS_Store
10+
11+
cache/
12+
*.cache
13+
runtime/
14+
test*

.php_cs.dist

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<?php
2+
/*
3+
* This document has been generated with
4+
* https://mlocati.github.io/php-cs-fixer-configurator/#version:2.15|configurator
5+
* you can change this configuration by importing this file.
6+
*/
7+
8+
return PhpCsFixer\Config::create()
9+
->setRiskyAllowed(true)
10+
->setIndent(' ')
11+
->setRules([
12+
'@PSR2' => true,
13+
'@PhpCsFixer' => true,
14+
'@Symfony:risky' => true,
15+
'concat_space' => ['spacing' => 'one'],
16+
'array_syntax' => ['syntax' => 'short'],
17+
'array_indentation' => true,
18+
'combine_consecutive_unsets' => true,
19+
'method_separation' => true,
20+
'single_quote' => true,
21+
'declare_equal_normalize' => true,
22+
'function_typehint_space' => true,
23+
'hash_to_slash_comment' => true,
24+
'include' => true,
25+
'lowercase_cast' => true,
26+
'no_multiline_whitespace_before_semicolons' => true,
27+
'no_leading_import_slash' => true,
28+
'no_multiline_whitespace_around_double_arrow' => true,
29+
'no_spaces_around_offset' => true,
30+
'no_unneeded_control_parentheses' => true,
31+
'no_unused_imports' => true,
32+
'no_whitespace_before_comma_in_array' => true,
33+
'no_whitespace_in_blank_line' => true,
34+
'object_operator_without_whitespace' => true,
35+
'single_blank_line_before_namespace' => true,
36+
'single_class_element_per_statement' => true,
37+
'space_after_semicolon' => true,
38+
'standardize_not_equals' => true,
39+
'ternary_operator_spaces' => true,
40+
'trailing_comma_in_multiline_array' => true,
41+
'trim_array_spaces' => true,
42+
'unary_operator_spaces' => true,
43+
'whitespace_after_comma_in_array' => true,
44+
'no_extra_consecutive_blank_lines' => [
45+
'curly_brace_block',
46+
'extra',
47+
'parenthesis_brace_block',
48+
'square_brace_block',
49+
'throw',
50+
'use',
51+
],
52+
'binary_operator_spaces' => [
53+
'align_double_arrow' => true,
54+
'align_equals' => true,
55+
],
56+
'braces' => [
57+
'allow_single_line_closure' => true,
58+
],
59+
])
60+
->setFinder(
61+
PhpCsFixer\Finder::create()
62+
->exclude('vendor')
63+
->exclude('tests')
64+
->in(__DIR__)
65+
);

README-CN.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
English | [简体中文](README-CN.md)
2+
3+
![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg)
4+
5+
## Alibaba Cloud ImageSearch SDK Library for PHP
6+
7+
## Installation
8+
9+
### Composer
10+
11+
```bash
12+
composer require alibabacloud/imagesearch-20200212
13+
```
14+
15+
## Issues
16+
17+
[Opening an Issue](https://github.com/aliyun/alibabacloud-sdk/issues/new), Issues not conforming to the guidelines may be closed immediately.
18+
19+
## Changelog
20+
21+
Detailed changes for each release are documented in the [release notes](./ChangeLog.txt).
22+
23+
## References
24+
25+
* [Latest Release](https://github.com/aliyun/alibabacloud-sdk)
26+
27+
## License
28+
29+
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
30+
31+
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[English](README.md) | 简体中文
2+
3+
![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg)
4+
5+
## Alibaba Cloud ImageSearch SDK Library for PHP
6+
7+
## 安装
8+
9+
### Composer
10+
11+
```bash
12+
composer require alibabacloud/imagesearch-20200212
13+
```
14+
15+
## 问题
16+
17+
[提交 Issue](https://github.com/aliyun/alibabacloud-sdk/issues/new),不符合指南的问题可能会立即关闭。
18+
19+
## 发行说明
20+
21+
每个版本的详细更改记录在[发行说明](./ChangeLog.txt)中。
22+
23+
## 相关
24+
25+
* [最新源码](https://github.com/aliyun/alibabacloud-sdk)
26+
27+
## 许可证
28+
29+
[Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0)
30+
31+
Copyright (c) 2009-present, Alibaba Cloud All rights reserved.

composer.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@
1212
"require": {
1313
"php": ">5.5",
1414
"alibabacloud/credentials": "^1.1",
15-
"alibabacloud/openplatform-20191219": "dev-master",
16-
"alibabacloud/tea-oss-sdk": "dev-master",
17-
"alibabacloud/tea-rpc-utils": "dev-master",
18-
"alibabacloud/tea-utils": "dev-master"
15+
"alibabacloud/openplatform-20191219": "^0.1.0",
16+
"alibabacloud/tea-oss-sdk": "^0.2.0"
1917
},
2018
"require-dev": {
2119
"phpunit/phpunit": "^4.8.35|^5.4.3",

0 commit comments

Comments
 (0)