PHPackages                             martink/laravel-devcopilot - 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. [CLI &amp; Console](/categories/cli)
4. /
5. martink/laravel-devcopilot

ActiveLibrary[CLI &amp; Console](/categories/cli)

martink/laravel-devcopilot
==========================

Laravel package that integrates ChatGPT into your Artisan CLI

v1.4.1(1y ago)22MITPHPPHP ^8.1 || ^8.4

Since May 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/karadzinov/laravel-devcopilot)[ Packagist](https://packagist.org/packages/martink/laravel-devcopilot)[ RSS](/packages/martink-laravel-devcopilot/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Laravel DevCopilot
==================

[](#laravel-devcopilot)

**DevCopilot** is a Laravel package that integrates ChatGPT directly into your Artisan CLI, giving you an intelligent assistant for explaining code, generating ideas, and streamlining development tasks—all without leaving your terminal.

[![Packagist Version](https://camo.githubusercontent.com/23101b4cd13c0948171a8ad0db3833afdba94cdf7be056c87776f563aaa88b3c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617274696e6b2f6c61726176656c2d646576636f70696c6f742e737667)](https://packagist.org/packages/martink/laravel-devcopilot)[![Packagist Downloads](https://camo.githubusercontent.com/cdcba5e086d8fe4420f1a732071febff9a04e9eb82a76157021dc220c09c9158/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d617274696e6b2f6c61726176656c2d646576636f70696c6f742e737667)](https://packagist.org/packages/martink/laravel-devcopilot)[![MIT License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://opensource.org/licenses/MIT)

---

🚀 Features
----------

[](#-features)

- 🤖 Ask ChatGPT questions directly from your Laravel project
- 🗂️ Include file contents as context using `--file`
- 🧠 Laravel-specific assistant for routes, controllers, migrations, and more

---

📦 Installation
--------------

[](#-installation)

1. Require the package via Composer (after it's published to Packagist):

```
composer require martink/laravel-devcopilot
```

2. Publish the config file:

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

3. Set your OpenAI API key in .env:

```
OPENAI_API_KEY=your-api-key-here

```

💡 Usage
-------

[](#-usage)

Ask ChatGPT anything:

```
php artisan gpt:ask "Explain what the middleware 'auth' does in Laravel"

```

Include a file for deeper context:

```
php artisan gpt:ask "Explain this file" --file=routes/web.php

```

⚙️ Configuration
----------------

[](#️-configuration)

Published config file: config/devcopilot.php

```
return [
    'api_key' => env('OPENAI_API_KEY'),
];

```

---

🧪 Coming Soon
-------------

[](#-coming-soon)

Multiple file support

- Context profiles (review, generate, explain)
- Answer caching
- Chat history log

### 🧑‍💻 Author

[](#‍-author)

Made with ❤️ by Martin Karadzinov

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance45

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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

425d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7139106?v=4)[Martin Karadzinov](/maintainers/karadzinov)[@karadzinov](https://github.com/karadzinov)

---

Top Contributors

[![karadzinov](https://avatars.githubusercontent.com/u/7139106?v=4)](https://github.com/karadzinov "karadzinov (2 commits)")

---

Tags

laravelartisangptChatGpt

### Embed Badge

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

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k108.5M885](/packages/laravel-socialite)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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