PHPackages                             leander/youdao-ai - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. leander/youdao-ai

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

leander/youdao-ai
=================

third-party youdao ai sdk for php

1.0.2(7y ago)091Apache-2.0PHPPHP &gt;=5.6.3

Since Feb 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/LeanderChen/php-sdk-youdaoai)[ Packagist](https://packagist.org/packages/leander/youdao-ai)[ RSS](/packages/leander-youdao-ai/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

php-sdk-youdaoai
================

[](#php-sdk-youdaoai)

有道AI第三方PHP-SDK，目前维护者只有一人，出于项目需要与兴趣维护她。如果你有bug反馈欢迎提供issues，如果你对项目维护迭代有想法，也欢迎[@leander](mailto:leander@tchost.cn)。

安装
--

[](#安装)

- composer安装

```
composer require leander/youdao-ai

```

- 手动安装

你需要从release中选择稳定版本下载，并将sdk主文件require进项目源文件。

```
require "/youdao-ai/src/sdk.class.php";

// just call whatever you want easely
$sdk = new YoudaoAi();
$sdk->api_method();
```

如果你使用CodeIgniter，你可以将sdk文件夹释放到application/libraries/目录，创建SDK入口文件`YoudaoAi.php`:

```
require ‘YoudaoAi/sdk.class.php’;
```

之后，你可以在CodeIgniter的模型控制器中，通过如下方式调用接口api：

```
