PHPackages                             llmesh/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. llmesh/laravel

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

llmesh/laravel
==============

First-class Laravel integration for LLMesh — the flexible PHP LLM SDK

01PHP

Since Jun 7Pushed 1mo agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

LLMesh Laravel Adapter
======================

[](#llmesh-laravel-adapter)

[![Latest Stable Version](https://camo.githubusercontent.com/9754e87447ec1a17de297e92ca8c76c28af2db7a1dafb2c5c973dd3f24d4c82c/68747470733a2f2f706f7365722e707567782e6f72672f6c6c6d6573682f6c61726176656c2f76)](https://packagist.org/packages/llmesh/laravel)[![PHP Version](https://camo.githubusercontent.com/acffb6ae1962992d26e4466782832787e79504a6250f80d732c4283458b9f497/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e312d626c75652e737667)](https://packagist.org/packages/llmesh/laravel)[![Framework Version](https://camo.githubusercontent.com/f8500a2545debae4fa513a01e4f7cff78780883c82eb8e07605629d3f41dc4d2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d31302e7825323025374325323031312e782d6f72616e67652e737667)](https://packagist.org/packages/llmesh/laravel)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

A first-class Laravel adapter package to integrate [LLMesh Core](https://github.com/fyunusa/llmesh) seamlessly into your Laravel applications.

---

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

[](#installation)

Install via Composer:

```
composer require llmesh/laravel
```

---

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

[](#configuration)

Publish the config file:

```
php artisan vendor:publish --tag="llmesh-config"
```

Configure your environment keys in `.env`:

```
LLMESH_PROVIDER=openai
OPENAI_API_KEY=your-api-key
```

---

Quick Start
-----------

[](#quick-start)

You can use the `LLMesh` facade directly in your controllers or services:

```
use LLMesh\Laravel\Facades\LLMesh;
use LLMesh\Core\Generators\GenerateTextOptions;

// Text Generation using the default configured provider
$response = LLMesh::generateText(
    GenerateTextOptions::make()->withPrompt('Tell me a programming joke.')
);

echo $response->getText();
```

---

Queueable Agent Jobs
--------------------

[](#queueable-agent-jobs)

The package provides a built-in `RunAgentJob` queueable job to delegate autonomous agent execution into the background:

```
use LLMesh\Laravel\Jobs\RunAgentJob;
use LLMesh\Core\Agents\Agent;

$agent = Agent::make($provider, 'You are a server reviewer.');

// Dispatch background agent execution
RunAgentJob::dispatch('user-session-123', $agent, 'Analyze the main server configuration.');
```

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance60

Regular maintenance activity

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![fyunusa](https://avatars.githubusercontent.com/u/55334829?v=4)](https://github.com/fyunusa "fyunusa (6 commits)")

### Embed Badge

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

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

###  Alternatives

[jpmurray/laravel-countdown

Provide an easy class easy way to get the time difference between two dates, with an extra bonus trait for eloquent

833.8k](/packages/jpmurray-laravel-countdown)[opensoft/php-wsdl-proxy-generator

Simple WSDL Proxy Generator

131.8k](/packages/opensoft-php-wsdl-proxy-generator)

PHPackages © 2026

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