阿里云 PAI-AIService 服务的 php SDK.
PHP 5.5 and later
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/aliyun/aliyun-pai-aiservice-php-sdk.git"
}
],
"require": {
"aliyun/aliyun-pai-aiservice-php-sdk": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
require_once('/path/to/aliyun-pai-aiservice-php-sdk/vendor/autoload.php');
To run the unit tests:
composer install
./vendor/bin/phpunit
AI 写真训练生成相关接口参考 test/Api/AigcImagesTest.php
AI 写真具体接口参考 test/Api/AigcImagesApiTest.php