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

ActiveLibrary

athlon18/laravel-ai
===================

优雅的laravel ai客户端

1.0.3(6y ago)02MITPHP

Since Jan 2Pushed 5y agoCompare

[ Source](https://github.com/athlon18/laravel-ai)[ Packagist](https://packagist.org/packages/athlon18/laravel-ai)[ RSS](/packages/athlon18-laravel-ai/feed)WikiDiscussions master Synced 1mo ago

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

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

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

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

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

[](#laravel-ai)

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

安装
--

[](#安装)

```
composer require athlon18/laravel-ai":dev-master -vvv

```

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

### 配置

[](#配置)

app.php中

```

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

    .....

    Athlon18\LaravelAi\AiServiceProvider::class,

];

// 注册facades
'aliases' => [

    ....

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

```

发布资源
----

[](#发布资源)

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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 62.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

2535d ago

### Community

Maintainers

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

---

Top Contributors

[![crisenchou](https://avatars.githubusercontent.com/u/16332040?v=4)](https://github.com/crisenchou "crisenchou (23 commits)")[![athlon18](https://avatars.githubusercontent.com/u/44226614?v=4)](https://github.com/athlon18 "athlon18 (10 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/athlon18-laravel-ai/health.svg)

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)[grok-php/laravel

Seamlessly integrate Grok AI into Laravel applications with an elegant, developer-friendly package. Leverage powerful AI models for chat, automation, and NLP while maintaining Laravel's expressive simplicity.

1633.4k](/packages/grok-php-laravel)[jayesh/laravel-gemini-translator

An interactive command to extract and generate Laravel translations using Gemini AI.

691.7k1](/packages/jayesh-laravel-gemini-translator)

PHPackages © 2026

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