PHPackages                             vectorifyai/vectorify-laravel - 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. [API Development](/categories/api)
4. /
5. vectorifyai/vectorify-laravel

ActiveLibrary[API Development](/categories/api)

vectorifyai/vectorify-laravel
=============================

Vectorify package for Laravel. The fastest way to ask AI about your data.

1.0.7(10mo ago)206.1k2MITPHPPHP &gt;=8.2CI passing

Since Jun 24Pushed 10mo ago1 watchersCompare

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

READMEChangelog (8)Dependencies (3)Versions (9)Used By (0)

Vectorify package for Laravel
=============================

[](#vectorify-package-for-laravel)

[![Latest Version](https://camo.githubusercontent.com/3d1c6a10ed25dbe4515eb8ec17f8607ce0ed006434fd60106de09dd62c07a63c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f766563746f7269667961692f766563746f726966792d6c61726176656c2e7376673f6c6162656c3d6c6174657374267374796c653d666c6174)](https://packagist.org/packages/vectorifyai/vectorify-laravel)[![Total Downloads](https://camo.githubusercontent.com/fe1eabf88dd9d73af6d7cc94ab298b61d139cd57c9475c16f9f4fef82f84acc7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766563746f7269667961692f766563746f726966792d6c61726176656c2e7376673f7374796c653d666c6174)](https://packagist.org/packages/vectorifyai/vectorify-laravel)[![Tests](https://camo.githubusercontent.com/cb0b353cbd125d13f7c441b9f9874b7c9864d6f804a374a9c880d88a53922155/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f766563746f7269667961692f766563746f726966792d6c61726176656c2f74657374732e796d6c3f6c6162656c3d7465737473267374796c653d666c6174)](https://github.com/vectorifyai/vectorify-laravel/actions/workflows/tests.yml)[![License](https://camo.githubusercontent.com/8349f95cc38280104b1608c5dcb9940eb88d5fde70f2f7e12be4d6d142a99b16/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f766563746f7269667961692f766563746f726966792d6c61726176656c2e7376673f7374796c653d666c6174)](LICENSE.md)

Vectorify is the end-to-end AI connector for Laravel, letting you query and explore your data in natural language in seconds.

Laravel is famous for turning complex web app chores into elegant, artisan-friendly code. Vectorify brings that same spirit to AI-powered data exploration: with one `composer install` and a single `config` file, your Laravel app becomes a conversational knowledge base you (and your customers) can query in natural language.

 [![vectorify setup](https://camo.githubusercontent.com/4d707581e7b104089940eb1843f8b545664c89db49bace143d4c890abc2c474b/68747470733a2f2f766563746f726966792e61692f7061636b616765732f766563746f726966792d6c61726176656c2f766563746f726966792d73657475702e737667)](https://camo.githubusercontent.com/4d707581e7b104089940eb1843f8b545664c89db49bace143d4c890abc2c474b/68747470733a2f2f766563746f726966792e61692f7061636b616765732f766563746f726966792d6c61726176656c2f766563746f726966792d73657475702e737667)

To interact with your data, you have four primary methods to choose from:

1. Use the [Chats](https://app.vectorify.ai/) page within our platform (fastest)
2. Embed the [Chatbot](https://docs.vectorify.ai/project/chatbot) into your Laravel app (turn data querying into a product feature)
3. Add the [MCP](https://docs.vectorify.ai/mcp-server) server to ChatGPT, Claude, etc. (use your data anywhere you work)
4. Call the REST [API](https://docs.vectorify.ai/api-reference) endpoints (build custom integrations and workflows)

Unlike text-to-SQL tools that expose your entire database and take 30+ seconds per query, Vectorify uses proven RAG technology to deliver accurate answers in &lt;4 seconds while keeping your database secure. Head to our [blog](https://vectorify.ai/blog/vectorify-laravel-unlock-ai-ready-data-in-60-seconds) to learn more about Vectorify.

This package provides seamless integration to automatically extract, transform, and upsert your Laravel application data to Vectorify.

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Laravel 10 or higher

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require vectorifyai/vectorify-laravel
```

The package automatically registers itself with Laravel through package auto-discovery.

Configuration
-------------

[](#configuration)

### 1. Publish configuration file

[](#1-publish-configuration-file)

Publish the configuration file to define your collections:

```
php artisan vendor:publish --tag=vectorify
```

This will create a `config/vectorify.php` file in your application.

### 2. Environment variables

[](#2-environment-variables)

Add the API Key to your `.env` file:

```
VECTORIFY_API_KEY=your_api_key_here
```

You can get your API Key from Vectorify's [dashboard](https://app.vectorify.ai).

### 3. Configure collections

[](#3-configure-collections)

Edit the `config/vectorify.php` file to define which models (collections) and columns you want to upsert. The simplest collection configuration references a model class:

```
'collections' => [
    \App\Models\Invoice::class,
]
```

This approach uses the model's `$fillable` or a custom `$vectorify` property as the column list. Read the [documentation](https://docs.vectorify.ai/configuration) to learn more about defining the collections.

Upsert
------

[](#upsert)

### Manual synchronisation

[](#manual-synchronisation)

Run the upsert command manually to sync your data:

```
php artisan vectorify:upsert
```

### Automatic synchronisation

[](#automatic-synchronisation)

The package automatically schedules the upsert command to run every 6 hours.

Changelog
---------

[](#changelog)

Please see [Releases](../../releases) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Pull requests are more than welcome. You must follow the PSR coding standards.

Security
--------

[](#security)

Please review [our security policy](https://github.com/vectorifyai/laravel-vectorify/security/policy) on how to report security vulnerabilities.

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE.md) for more information.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance54

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.3% 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 ~2 days

Total

8

Last Release

313d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/9ca06c358f37f03d22661c4260bbc12ca3e96057c0d6f6417f4e04d54522ac49?d=identicon)[emilyhendon](/maintainers/emilyhendon)

---

Top Contributors

[![emilyhendon](https://avatars.githubusercontent.com/u/202198324?v=4)](https://github.com/emilyhendon "emilyhendon (21 commits)")[![gabrielrbarbosa](https://avatars.githubusercontent.com/u/12158575?v=4)](https://github.com/gabrielrbarbosa "gabrielrbarbosa (2 commits)")

---

Tags

ailaravelllmmcpragvectorvector-databaselaravelmcpaivectoropenaiAgentllmragvector-database

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vectorifyai-vectorify-laravel/health.svg)

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

###  Alternatives

[vizra/vizra-adk

Vizra Agent Development Kit - A comprehensive Laravel package for building intelligent AI agents.

29026.1k](/packages/vizra-vizra-adk)[php-mcp/laravel

Laravel SDK for building Model Context Protocol (MCP) servers - Seamlessly integrate MCP tools, resources, and prompts into Laravel applications

47283.1k1](/packages/php-mcp-laravel)[claude-php/claude-php-sdk-laravel

Laravel integration for the Claude PHP SDK - Anthropic Claude API

5010.8k](/packages/claude-php-claude-php-sdk-laravel)

PHPackages © 2026

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