Skip to content

Commit

Permalink
First version.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 22, 2019
1 parent 904e4bc commit 9ecd2f8
Show file tree
Hide file tree
Showing 12 changed files with 220 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 1.7.173 - 2019-11-22
- First version.


## 1.7.172 - 2019-11-22
- Update Api Request And Response structure.

Expand Down
3 changes: 2 additions & 1 deletion SUPPORTED-EN.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[简体中文](./SUPPORTED.md) | English

# Supported
Alibaba Cloud SDK for PHP has supported quick access to 171 versions of 151 products, as listed below:
Alibaba Cloud SDK for PHP has supported quick access to 172 versions of 152 products, as listed below:

| Products | Versions |
|----------|-------------|
Expand Down Expand Up @@ -83,6 +83,7 @@ Alibaba Cloud SDK for PHP has supported quick access to 171 versions of 151 prod
| [ITaaS](https://packagist.org/packages/alibabacloud/itaas) | V20170505 |
| [ImageSearch](https://packagist.org/packages/alibabacloud/imagesearch) | V20180120, V20190325 |
| [Imageenhan](https://packagist.org/packages/alibabacloud/imageenhan) | V20190930 |
| [Imagerecog](https://packagist.org/packages/alibabacloud/imagerecog) | V20190930 |
| [Imm](https://packagist.org/packages/alibabacloud/imm) | V20170906 |
| [IndustryBrain](https://packagist.org/packages/alibabacloud/industrybrain) | V20180712 |
| [Iot](https://packagist.org/packages/alibabacloud/iot) | V20180120 |
Expand Down
3 changes: 2 additions & 1 deletion SUPPORTED.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
简体中文 | [English](./SUPPORTED-EN.md)

# 支持
Alibaba Cloud SDK for PHP 已经支持 151 个产品共 171 个版本的快捷访问,列表如下:
Alibaba Cloud SDK for PHP 已经支持 152 个产品共 172 个版本的快捷访问,列表如下:

| 产品 | 版本 |
|----------|-------------|
Expand Down Expand Up @@ -83,6 +83,7 @@ Alibaba Cloud SDK for PHP 已经支持 151 个产品共 171 个版本的快捷
| [ITaaS](https://packagist.org/packages/alibabacloud/itaas) | V20170505 |
| [ImageSearch](https://packagist.org/packages/alibabacloud/imagesearch) | V20180120, V20190325 |
| [Imageenhan](https://packagist.org/packages/alibabacloud/imageenhan) | V20190930 |
| [Imagerecog](https://packagist.org/packages/alibabacloud/imagerecog) | V20190930 |
| [Imm](https://packagist.org/packages/alibabacloud/imm) | V20170906 |
| [IndustryBrain](https://packagist.org/packages/alibabacloud/industrybrain) | V20180712 |
| [Iot](https://packagist.org/packages/alibabacloud/iot) | V20180120 |
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
"alibabacloud/itaas": "self.version",
"alibabacloud/imagesearch": "self.version",
"alibabacloud/imageenhan": "self.version",
"alibabacloud/imagerecog": "self.version",
"alibabacloud/imm": "self.version",
"alibabacloud/industrybrain": "self.version",
"alibabacloud/iot": "self.version",
Expand Down
1 change: 1 addition & 0 deletions src/IdeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
* @method static ITaaS\ITaaS iTaaS()
* @method static ImageSearch\ImageSearch imageSearch()
* @method static Imageenhan\Imageenhan imageenhan()
* @method static Imagerecog\Imagerecog imagerecog()
* @method static Imm\Imm imm()
* @method static IndustryBrain\IndustryBrain industryBrain()
* @method static Iot\Iot iot()
Expand Down
12 changes: 12 additions & 0 deletions src/Imagerecog/Imagerecog.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace AlibabaCloud\Imagerecog;

use AlibabaCloud\Client\Resolver\VersionResolver;

/**
* @method static V20190930\ImagerecogApiResolver v20190930()
*/
class Imagerecog extends VersionResolver
{
}
25 changes: 25 additions & 0 deletions src/Imagerecog/README-EN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[¼òÌåÖÐÎÄ](./README.md) | English

<p align="center">
<a href=" https://www.aliyun.com"><img src="https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg"></a>
</p>

<h1 align="center">Alibaba Cloud Imagerecog SDK for PHP</h1>

If [Alibaba Cloud SDK for PHP][sdk] is installed, there is no need to install the product dependency package. This product dependency package is only part of the synchronization from [Alibaba Cloud SDK for PHP][sdk], and its namespace and usage are consistent with [Alibaba Cloud SDK for PHP][sdk].

If you don't care about file size, we recommend that you install [Alibaba Cloud SDK for PHP][sdk] and update it regularly so as to maintain the latest and most complete product support:
```
composer require alibabacloud/sdk
```

The product can also be installed only:
> The version of this product is always synchronized with [Alibaba Cloud SDK for PHP][sdk] to ensure that it can switch with [Alibaba Cloud SDK for PHP][sdk] at any time without changing the business code, although the code between different versions of this product may not change.
```
composer require alibabacloud/imagerecog
```

***
Refer to document [Alibaba Cloud SDK for PHP][sdk] for more SDK usage.

[sdk]: https://github.com/aliyun/openapi-sdk-php
25 changes: 25 additions & 0 deletions src/Imagerecog/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
简体中文 | [English](./README-EN.md)

<p align="center">
<a href=" https://www.aliyun.com"><img src="https://aliyunsdk-pages.alicdn.com/icons/Aliyun.svg"></a>
</p>

<h1 align="center">Alibaba Cloud Imagerecog SDK for PHP</h1>

若已安装 [Alibaba Cloud SDK for PHP][sdk] 则无需安装本产品依赖包。本产品依赖包只是从 [Alibaba Cloud SDK for PHP][sdk] 中同步出来的一部分,其命名空间、用法与 [Alibaba Cloud SDK for PHP][sdk] 一致。

如果您不在乎文件体积,建议您安装 [Alibaba Cloud SDK for PHP][sdk] 并经常更新,以便保持最新、最全的产品支持:
```
composer require alibabacloud/sdk
```

也可仅安装本产品:
> 本产品的版本始终和 [Alibaba Cloud SDK for PHP][sdk] 保持同步,以保证在不改变业务代码的情况下随时和 [Alibaba Cloud SDK for PHP][sdk] 相互切换,尽管本产品不同版本之间的代码可能没有变化。
```
composer require alibabacloud/imagerecog
```

***
更多 SDK 的使用请参考 [Alibaba Cloud SDK for PHP][sdk] 文档。

[sdk]: https://github.com/aliyun/openapi-sdk-php
103 changes: 103 additions & 0 deletions src/Imagerecog/V20190930/ImagerecogApiResolver.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<?php

namespace AlibabaCloud\Imagerecog\V20190930;

use AlibabaCloud\Client\Resolver\ApiResolver;

/**
* @method DetectImageElements detectImageElements(array $options = [])
* @method RecognizeImageColor recognizeImageColor(array $options = [])
* @method RecognizeImageStyle recognizeImageStyle(array $options = [])
*/
class ImagerecogApiResolver extends ApiResolver
{
}

class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
{
/** @var string */
public $product = 'imagerecog';

/** @var string */
public $version = '2019-09-30';

/** @var string */
public $method = 'POST';

/** @var string */
public $serviceCode = 'imagerecog';
}

/**
* @method string getUrl()
*/
class DetectImageElements extends Rpc
{

/**
* @param string $value
*
* @return $this
*/
public function withUrl($value)
{
$this->data['Url'] = $value;
$this->options['form_params']['Url'] = $value;

return $this;
}
}

/**
* @method string getUrl()
* @method string getColorCount()
*/
class RecognizeImageColor extends Rpc
{

/**
* @param string $value
*
* @return $this
*/
public function withUrl($value)
{
$this->data['Url'] = $value;
$this->options['form_params']['Url'] = $value;

return $this;
}

/**
* @param string $value
*
* @return $this
*/
public function withColorCount($value)
{
$this->data['ColorCount'] = $value;
$this->options['form_params']['ColorCount'] = $value;

return $this;
}
}

/**
* @method string getUrl()
*/
class RecognizeImageStyle extends Rpc
{

/**
* @param string $value
*
* @return $this
*/
public function withUrl($value)
{
$this->data['Url'] = $value;
$this->options['form_params']['Url'] = $value;

return $this;
}
}
43 changes: 43 additions & 0 deletions src/Imagerecog/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "alibabacloud/imagerecog",
"homepage": "https://www.alibabacloud.com/",
"description": "Alibaba Cloud Imagerecog SDK for PHP",
"keywords": [
"imagerecog",
"sdk",
"cloud",
"aliyun",
"alibaba",
"library",
"alibabacloud"
],
"type": "library",
"license": "Apache-2.0",
"support": {
"source": "https://github.com/alibabacloud-sdk-php/imagerecog",
"issues": "https://github.com/alibabacloud-sdk-php/imagerecog/issues"
},
"authors": [
{
"name": "Alibaba Cloud SDK",
"email": "[email protected]",
"homepage": "http://www.alibabacloud.com"
}
],
"require": {
"php": ">=5.5",
"alibabacloud/client": "^1.5"
},
"autoload": {
"psr-4": {
"AlibabaCloud\\Imagerecog\\": ""
}
},
"config": {
"sort-packages": true,
"preferred-install": "dist",
"optimize-autoloader": true
},
"prefer-stable": true,
"minimum-stability": "dev"
}
1 change: 1 addition & 0 deletions src/Imagerecog/endpoints.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"endpoint_map":{},"endpoint_regional":"regional","standard":{"cn-shanghai":"imagerecog.cn-shanghai.aliyuncs.com"},"regions":["cn-shanghai"],"endpoint_health":[]}
2 changes: 1 addition & 1 deletion src/Release.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Release
/**
* Version of the SDK
*/
const VERSION = '1.7.172';
const VERSION = '1.7.173';

/**
* @param Event $event
Expand Down

0 comments on commit 9ecd2f8

Please sign in to comment.