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

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

jourdon/ai
==========

A package about baidu ai

v0.0.2(6y ago)014MITPHP

Since Aug 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/jourdon/ai)[ Packagist](https://packagist.org/packages/jourdon/ai)[ RSS](/packages/jourdon-ai/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (3)Used By (0)

以图搜图功能
======

[](#以图搜图功能)

> 使用的是百度AI平台，需申请百度AI开放平台帐号

[![Latest Stable Version](https://camo.githubusercontent.com/cb15e96ddbc178e4a069b9c08e7fea72380570c41656338bfb57924bc1d967b8/68747470733a2f2f706f7365722e707567782e6f72672f6a6f7572646f6e2f61692f76657273696f6e)](https://github.com/jourdon/ai)[![Total Downloads](https://camo.githubusercontent.com/5654bb071bf8f8de48e161c082436337737ad2d1ee5dade2409d981909eb34b2/68747470733a2f2f706f7365722e707567782e6f72672f6a6f7572646f6e2f61692f646f776e6c6f616473)](https://packagist.org/packages/jourdon/ai)[![License](https://camo.githubusercontent.com/fbd3a63d3ce214d054341dd8dbe6cb4108048fc9905f861786ac14a5180f11b0/68747470733a2f2f706f7365722e707567782e6f72672f6a6f7572646f6e2f61692f6c6963656e7365)](https://packagist.org/packages/jourdon/ai)

\##要求

- PHP版本: 7.1+
- laravel版本:5.5+

安装
--

[](#安装)

`composer require jourdon/ai`

发布配置文件:
-------

[](#发布配置文件)

`php artisan vendor:publish --provider="Ai\ServiceProvider"`

#### env中增加配置

[](#env中增加配置)

```
#百度应用列表中的appid
BAIDU_SEARCH_APP_ID=
#百度应用的API Key
BAIDU_SEARCH_API_KEY=
#百度应用的Secret Key
BAIDU_SEARCH_SECRET_KEY=

```

#### API类型

[](#api类型)

- same 相同图检索
- similar 相似图检
- product 商品检索

#### 方法类型

[](#方法类型)

- add 入库
- search 检索
- delete 删除
- update 更新

使用方法
----

[](#使用方法)

```
app('ai')
//图片文件或图片 URL
->select($path)
//API类型   方法类型
->where('product','search')
//可选参数 参考官方文档
->options($options)
->get(10);

```

[官方文档](http://ai.baidu.com/docs#/IMAGESEARCH-API/f04ab525)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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 ~0 days

Total

2

Last Release

2468d ago

### Community

Maintainers

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

---

Tags

laravelaibaiduimage-search

### Embed Badge

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

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

###  Alternatives

[mischasigtermans/laravel-altitude

Claude Code agents for the TALL stack, powered by Laravel Boost

1139.2k](/packages/mischasigtermans-laravel-altitude)[mateffy/laravel-codebase-mcp

An MCP server to give Cursor, Aider, etc. the ability to introspect your Laravel codebase directly, by querying for your models, views, routes and classes without raw file search.

201.1k](/packages/mateffy-laravel-codebase-mcp)

PHPackages © 2026

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