Looking to hire Laravel developers? Try LaraJobs

aliyun-pai-aiservice-php-sdk maintained by laraveladmin

Description
pai-aiservice php sdk
Author
Last update
2024/01/27 04:34 (dev-master)
License
Downloads
20
Tags

Comments
comments powered by Disqus

aliyun-pai-aiservice-php-sdk

阿里云 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