laraveladmin / aliyun-pai-aiservice-php-sdk
pai-aiservice php sdk
v1.0.1
2024-01-27 03:34 UTC
Requires
- php: ^7.0 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: >=6.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
This package is not auto-updated.
Last update: 2024-11-03 05:52:40 UTC
README
阿里云 PAI-AIService 服务的 php SDK.
Requirements
PHP 5.5 and later
Installation & Usage
Composer
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
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/aliyun-pai-aiservice-php-sdk/vendor/autoload.php');
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit
Getting Started
AI 写真训练生成相关接口参考 test/Api/AigcImagesTest.php
AI 写真具体接口参考 test/Api/AigcImagesApiTest.php