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

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

crisen/laravel-ai
=================

优雅的laravel ai客户端

1.0.0(7y ago)165.2k3MITPHP

Since Jan 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/crisenchou/laravel-ai)[ Packagist](https://packagist.org/packages/crisen/laravel-ai)[ RSS](/packages/crisen-laravel-ai/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (2)Used By (0)

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

[](#laravel-ai)

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

安装
--

[](#安装)

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

```

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

### 配置

[](#配置)

app.php中

```

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

    .....

    Crisen\LaravelAi\AiServiceProvider::class,

];

// 注册facades
'aliases' => [

    ....

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

```

发布资源
----

[](#发布资源)

```
artisan vendor:publish --provider=Crisen\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 Crisen\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

32

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2638d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b7d5be5d100e7d58fb744b78f8eba03d64c7988d98594491e98766b710a3ec17?d=identicon)[crisenchou](/maintainers/crisenchou)

---

Top Contributors

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

---

Tags

ai clientlaravel-ai

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[nickurt/laravel-akismet

Akismet for Laravel 11.x &amp; 12.x

98135.0k2](/packages/nickurt-laravel-akismet)[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.2k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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