laraveladmin/aliyun-pai-aiservice-php-sdk

v1.0.1 2024-01-27 03:34 UTC

This package is not auto-updated.

Last update: 2024-11-03 05:52:40 UTC


README

阿里云 PAI-AIService 服务的 php SDK.

多媒体分析文档

AI写真文档

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