PHPackages                             waimao/laravel-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. waimao/laravel-ai

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

waimao/laravel-ai
=================

优雅的laravel ai客户端

1.0.3(6y ago)0151MITPHP

Since Jan 2Pushed 6y agoCompare

[ Source](https://github.com/reddrake/laravel-ai)[ Packagist](https://packagist.org/packages/waimao/laravel-ai)[ RSS](/packages/waimao-laravel-ai/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (3)Versions (5)Used By (0)

基于crisen/laravel-ai 做的衍生版本，如要使用BAIDU\_AI，请使用crisen/laravel-ai的包
===============================================================

[](#基于crisenlaravel-ai-做的衍生版本如要使用baidu_ai请使用crisenlaravel-ai的包)

基于crisen/laravel-ai 做的衍生版本，如要使用BAIDU\_AI，请使用crisen/laravel-ai的包

laravel-ai
==========

[](#laravel-ai)

使用laravel ai优雅的调用ai客户端

安装
--

[](#安装)

```
composer require "waimao/laravel-ai":"^1.0.0"

```

非laravel版本,[点击这里](https://github.com/crisenchou/ai)

### 配置

[](#配置)

app.php中

```

//注册服务提供者
'providers' => [

    .....

    Waimao\LaravelAi\AiServiceProvider::class,

];

// 注册facades
'aliases' => [

    ....

    'Ai' => Waimao\LaravelAi\Facades\Ai::class,
]

```

发布资源
----

[](#发布资源)

```
artisan vendor:publish --provider=Waimao\LaravelAi\AiServiceProvider

```

### 配置

[](#配置-1)

ai.php

```
return [

    'default' => 'baidu',

    'drivers' => [
        'baidu' => [
            'app_id' => 'your appid', // 百度appid
            'api_key' => 'your api key', // 百度apikey
            'secret_key' => 'your api secret' // 百度secret key
        ],
        'tencent' => [
       	 	'app_id' => 'your appid', // 腾讯appid
       		 'app_key' => 'your secret id', // 腾讯appid
    	]
    ]
];

```

### 使用简介

[](#使用简介)

```
namespace someNameSpace;

use Waimao\LaravelAi\Facades\Ai;

....

class SomeController{

	public function facesetAdd(){
		//人脸检索
		$res = Ai::face()
		        ->url("http://domaon.com/someimgae.jpeg")
		        ->detect();
		 dd($res);
	}
}

```

更多使用方法
------

[](#更多使用方法)

- [详细文档](http://ai.crisen.org)

支持的驱动
-----

[](#支持的驱动)

- 百度AI
- 腾讯AI

LICENSE
-------

[](#license)

[MIT](LICENSE)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 85.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~51 days

Total

4

Last Release

2534d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ec1ff71c5100abbc637c06479650482967ecfb4d57862bf19acae985a05f0a1?d=identicon)[reddrake](/maintainers/reddrake)

---

Top Contributors

[![crisenchou](https://avatars.githubusercontent.com/u/16332040?v=4)](https://github.com/crisenchou "crisenchou (23 commits)")[![reddrake](https://avatars.githubusercontent.com/u/4412977?v=4)](https://github.com/reddrake "reddrake (4 commits)")

---

Tags

ai clientlaravel-ai

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/waimao-laravel-ai/health.svg)

```
[![Health](https://phpackages.com/badges/waimao-laravel-ai/health.svg)](https://phpackages.com/packages/waimao-laravel-ai)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)[crisen/ai

优雅的ai客户端

265.5k1](/packages/crisen-ai)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
