-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cde0084
Showing
74 changed files
with
5,725 additions
and
0 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,13 @@ | ||
.editorconfig export-ignore | ||
/.github/ export-ignore | ||
.gitignore export-ignore | ||
/cache/ export-ignore | ||
/docs/ export-ignore | ||
/tests/ export-ignore | ||
/Makefile export-ignore | ||
.gitattributes export-ignore | ||
/phpunit.xml export-ignore | ||
/.scrutinizer.yml export-ignore | ||
/.travis.yml export-ignore | ||
/appveyor.yml export-ignore | ||
/codecov.yml export-ignore |
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,27 @@ | ||
<!-- | ||
Thank you for reporting an issue. | ||
This issue tracker is for bugs and issues found within Alibaba Cloud SDK for PHP. | ||
If you require more general support please file an issue on our help | ||
repo. https://help.aliyun.com/ | ||
Please fill in as much of the template below as you're able. | ||
PHP Version: output of `php -v` | ||
Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows) | ||
Product: Which product is used? For example `Ecs` | ||
Product Version: The version of the product, for example `2014-05-26` | ||
API: The API of the product, for example `ActivateRouterInterface` | ||
If possible, please provide code that demonstrates the problem, keeping it as | ||
simple and free of external dependencies as you are able. | ||
--> | ||
|
||
* **PHP Version**: | ||
* **Platform**: | ||
* **Product**: | ||
* **Product Version**: | ||
* **API**: | ||
|
||
<!-- Enter your issue details below this comment. --> |
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,28 @@ | ||
--- | ||
name: "\U0001F41B Bug report" | ||
about: Create a report to help us improve | ||
|
||
--- | ||
|
||
<!-- | ||
Thank you for reporting a possible bug. | ||
Please fill in as much of the template below as you can. | ||
PHP Version: output of `php -v` | ||
Platform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows) | ||
Product: Which product is used? For example `Ecs` | ||
Product Version: The version of the product, for example `2014-05-26` | ||
API: The API of the product, for example `ActivateRouterInterface` | ||
If possible, please provide code that demonstrates the problem, keeping it as | ||
simple and free of external dependencies as you can. | ||
--> | ||
|
||
* **PHP Version**: | ||
* **Platform**: | ||
* **Product**: | ||
* **Product Version**: | ||
* **API**: | ||
|
||
<!-- Please provide more details below this comment. --> |
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,20 @@ | ||
--- | ||
name: "\U0001F680 Feature request" | ||
about: Suggest an idea for this project | ||
|
||
--- | ||
|
||
<!-- | ||
Thank you for suggesting an idea to make Alibaba Cloud SDK better. | ||
Please fill in as much of the template below as you're able. | ||
--> | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
Please describe the problem you are trying to solve. | ||
|
||
**Describe the solution you'd like** | ||
Please describe the desired behavior. | ||
|
||
**Describe alternatives you've considered** | ||
Please describe alternative solutions or features you have considered. |
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,10 @@ | ||
--- | ||
name: "⁉️ Need help with Alibaba Cloud?" | ||
about: Please submit a work order in our work order system | ||
|
||
--- | ||
|
||
If you have a question about Alibaba Cloud that is not a bug report or feature | ||
request, please post it in https://selfservice.console.aliyun.com/ticket/createIndex | ||
|
||
Questions posted to this repository will be closed. |
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,29 @@ | ||
--- | ||
name: "\U0001F41B 缺陷问题反馈" | ||
about: 提交缺陷问题反馈 | ||
|
||
--- | ||
|
||
<!-- | ||
感谢提交问题反馈。 | ||
请提供尽量全面的信息协助问题定位修复。 | ||
PHP 版本:使用 `php -v` | ||
平台:UNIX 或 Windows | ||
产品名称:例如 `Ecs` | ||
产品版本:例如 `2014-05-26` | ||
API:例如 `ActivateRouterInterface` | ||
如果可能,请提供一份最小问题复现代码。 | ||
--> | ||
|
||
* **PHP 版本**: | ||
* **平台**: | ||
* **产品名称**: | ||
* **产品版本**: | ||
* **API**: | ||
|
||
<!-- 请提供其他可能协助问题定位的信息 --> | ||
|
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,20 @@ | ||
--- | ||
name: "\U0001F680 功能建议" | ||
about: 建议在项目中增加功能 | ||
|
||
--- | ||
|
||
<!-- | ||
感谢您向我们提建议,我们会做得更好! | ||
请尽可能多地填写下面的模板。 | ||
--> | ||
|
||
**您的功能请求是否与问题有关? 请描述一下。** | ||
请描述您要解决的问题。 | ||
|
||
**描述你想要的解决方案** | ||
请描述所需的行为。 | ||
|
||
**描述您考虑过的替代方案** | ||
请描述您考虑的替代解决方案或功能。 |
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,10 @@ | ||
--- | ||
name: "⁉️ 需要阿里云的帮助?" | ||
about: 请在我们的工单系统提出工单 | ||
|
||
--- | ||
|
||
如果您对阿里云 SDK 的问题不是 Bug 或希望添加新功能, | ||
请在我们的工单系统提出工单:https://selfservice.console.aliyun.com/ticket/createIndex | ||
|
||
此类问题将被关闭。 |
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,14 @@ | ||
<!-- | ||
Thank you for your pull request. Please provide a description above and review | ||
the requirements below. | ||
Bug fixes and new features should include tests and possibly benchmarks. | ||
Contributors guide: https://github.com/aliyun/credentials-php/blob/master/CONTRIBUTING.md | ||
--> | ||
|
||
##### You need to complete | ||
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> | ||
|
||
- [ ] unit tests and/or feature tests | ||
- [ ] documentation is changed or added |
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,10 @@ | ||
.DS_Store | ||
/vendor | ||
/.env | ||
.idea/* | ||
*.pem | ||
/.php_cs.cache | ||
/cache | ||
composer.lock | ||
/credentials-php.iml | ||
*.log |
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,57 @@ | ||
build: | ||
nodes: | ||
analysis: | ||
tests: | ||
override: | ||
- php-scrutinizer-run | ||
coverage: | ||
tests: | ||
override: | ||
# Install Proxy | ||
- command: npm i -g [email protected] --force | ||
- command: sudo /home/scrutinizer/.nvm/versions/io.js/v1.3.0/bin/n 11.12.0 | ||
- command: sudo ln -s /usr/local/n/versions/node/11.12.0/bin/node /usr/bin/node | ||
- command: sudo ln -s /usr/local/n/versions/node/11.12.0/bin/npm /usr/bin/npm | ||
- command: sudo npm install o_o -g | ||
# Start Proxy | ||
- command: sudo o_o & | ||
# Make test | ||
- command: composer test | ||
coverage: | ||
file: cache/coverage.clover | ||
format: clover | ||
|
||
filter: | ||
excluded_paths: | ||
- tests/* | ||
|
||
checks: | ||
php: | ||
code_rating: true | ||
remove_extra_empty_lines: true | ||
remove_php_closing_tag: true | ||
remove_trailing_whitespace: true | ||
fix_use_statements: | ||
remove_unused: true | ||
preserve_multiple: false | ||
preserve_blanklines: true | ||
order_alphabetically: true | ||
fix_php_opening_tag: true | ||
fix_linefeed: true | ||
fix_line_ending: true | ||
fix_identation_4spaces: true | ||
fix_doc_comments: true | ||
tools: | ||
external_code_coverage: false | ||
php_code_coverage: true | ||
php_code_sniffer: | ||
config: | ||
standard: PSR2 | ||
filter: | ||
paths: ['src'] | ||
php_loc: | ||
enabled: true | ||
excluded_dirs: [vendor, tests] | ||
php_cpd: | ||
enabled: true | ||
excluded_dirs: [vendor, tests] |
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,45 @@ | ||
language: php | ||
|
||
php: | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
- hhvm | ||
- nightly | ||
env: | ||
- COMPOSER_OPTS="" | ||
- COMPOSER_OPTS="--prefer-lowest" | ||
|
||
matrix: | ||
allow_failures: | ||
- php: hhvm | ||
- php: nightly | ||
fast_finish: true | ||
|
||
sudo: false | ||
|
||
install: | ||
- 'if [ $(phpenv version-name) == "5.5" ]; then rm ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini; fi' | ||
- 'if [ $(phpenv version-name) != "hhvm" ] && [ $(phpenv version-name) != "nightly" ]; then echo "xdebug.overload_var_dump = 0" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi' | ||
- 'if { [ $(phpenv version-name) == "7.2" ] || [ $(phpenv version-name) == "7.3" ]; } && [ -v COMPOSER_OPTS ]; then composer require --dev phpunit/phpunit "^5.7.11"; fi' | ||
- composer --version | ||
- travis_retry composer update $COMPOSER_OPTS --no-interaction --prefer-source --profile | ||
# Install Proxy | ||
- sudo rm -rf ~/.nvm - curl -sL "https://deb.nodesource.com/setup_11.x" | sudo -E bash - | ||
- sudo apt-get install -y nodejs | ||
- sudo ln -s /usr/bin/nodejs /usr/bin/node | ||
- sudo apt-get install -y npm | ||
- sudo npm i -g n --force -g --registry=https://registry.npm.taobao.org | ||
- sudo n latest | ||
- sudo npm install o_o -g --registry=https://registry.npm.taobao.org | ||
|
||
script: | ||
# Start Proxy | ||
- sudo o_o & | ||
# Test | ||
- test -z $ACCESS_KEY_ID -a -z $ACCESS_KEY_SECRET || composer test | ||
|
||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) |
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,4 @@ | ||
# CHANGELOG | ||
|
||
## 1.0.0 - 2019-09-01 | ||
- Initial release of the Alibaba Cloud Credentials for PHP Version 1.0.0 on Packagist See <https://github.com/aliyun/credentials-php> for more information. |
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,30 @@ | ||
# CONTRIBUTING | ||
|
||
We work hard to provide a high-quality and useful SDK for Alibaba Cloud, and | ||
we greatly value feedback and contributions from our community. Please submit | ||
your [issues][issues] or [pull requests][pull-requests] through GitHub. | ||
|
||
## Tips | ||
|
||
- The SDK is released under the [Apache license][license]. Any code you submit | ||
will be released under that license. For substantial contributions, we may | ||
ask you to sign a [Alibaba Documentation Corporate Contributor License | ||
Agreement (CLA)][cla]. | ||
- We follow all of the relevant PSR recommendations from the [PHP Framework | ||
Interop Group][php-fig]. Please submit code that follows these standards. | ||
The [PHP CS Fixer][cs-fixer] tool can be helpful for formatting your code. | ||
Your can use `composer fixer` to fix code. | ||
- We maintain a high percentage of code coverage in our unit tests. If you make | ||
changes to the code, please add, update, and/or remove tests as appropriate. | ||
- If your code does not conform to the PSR standards, does not include adequate | ||
tests, or does not contain a changelog document, we may ask you to update | ||
your pull requests before we accept them. We also reserve the right to deny | ||
any pull requests that do not align with our standards or goals. | ||
|
||
[issues]: https://github.com/aliyun/credentials-php/issues | ||
[pull-requests]: https://github.com/aliyun/credentials-php/pulls | ||
[license]: http://www.apache.org/licenses/LICENSE-2.0 | ||
[cla]: https://alibaba-cla-2018.oss-cn-beijing.aliyuncs.com/Alibaba_Documentation_Open_Source_Corporate_CLA.pdf | ||
[php-fig]: http://php-fig.org | ||
[cs-fixer]: http://cs.sensiolabs.org/ | ||
[docs-readme]: https://github.com/aliyun/credentials-php/blob/master/README.md |
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,13 @@ | ||
Copyright 1999-2019 Alibaba Group Holding Ltd. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
Oops, something went wrong.