PHPackages                             maltekuhr/laravel-gpt - 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. maltekuhr/laravel-gpt

ActiveLibrary[API Development](/categories/api)

maltekuhr/laravel-gpt
=====================

Streamlined integration of OpenAI's ChatGPT (GPT-3.5, GPT-4) into Laravel applications.

v0.1.6(10mo ago)116142.7k↓69.8%44[3 issues](https://github.com/maltekuhr/laravel-gpt/issues)[1 PRs](https://github.com/maltekuhr/laravel-gpt/pulls)4MITPHPPHP ^8.1.0CI failing

Since Jul 2Pushed 10mo ago8 watchersCompare

[ Source](https://github.com/maltekuhr/laravel-gpt)[ Packagist](https://packagist.org/packages/maltekuhr/laravel-gpt)[ Docs](https://github.com/maltekuhr/laravel-gpt)[ RSS](/packages/maltekuhr-laravel-gpt/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (6)Dependencies (6)Versions (10)Used By (4)

[![LaravelGPT](https://private-user-images.githubusercontent.com/80050109/250803709-21071831-78ba-4d0a-9911-f19f5a174e0b.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODQ4OTQ1MTksIm5iZiI6MTc4NDg5NDIxOSwicGF0aCI6Ii84MDA1MDEwOS8yNTA4MDM3MDktMjEwNzE4MzEtNzhiYS00ZDBhLTk5MTEtZjE5ZjVhMTc0ZTBiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA3MjQlMkZ1cy1lYXN0LTElMkZzMyU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Dbschx157d_QBkYOmpZN5RSsemVzt8o1V9c)

Unleash the Power of OpenAI's ChatGPT API
=========================================

[](#unleash-the-power-of-openais-chatgpt-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/399d2a0d55cab0bd3600ff952087732f21eb4b485897b67ad1a37be793f7fe87/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616c74656b7568722f6c61726176656c2d6770742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/maltekuhr/laravel-gpt)[![Total Downloads](https://camo.githubusercontent.com/9eafdd1df0bcb80003b5e65704b4e1d1b011d5cde5dec9a0614edd52c4bf8d5b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d616c74656b7568722f6c61726176656c2d6770742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/maltekuhr/laravel-gpt)

Introducing LaravelGPT, a tool designed to simplify the integration of OpenAI's ChatGPT with your Laravel applications. This package offers a seamless connection to the OpenAI Chat Completions API, even supporting Function Calling. Forget the complications of crafting the correct JSON schema - LaravelGPT does the work for you. Say goodbye to dense, hard-to-read code, and start building the applications of the future! With LaravelGPT, you can truly unleash the power of ChatGPT in your applications, setting the stage for innovation and advanced user interaction.

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

[](#installation)

You can install the package via composer:

```
composer require maltekuhr/laravel-gpt
```

Next you need to configure your OpenAI API Key and Organization ID. You can find both in the [OpenAI Dashboard](https://platform.openai.com/account/org-settings).

```
OPENAI_ORGANIZATION=YOUR_ORGANIZATION_ID
OPENAI_API_KEY=YOUR_API_KEY
```

You are now ready to use LaravelGPT! I recommend you to read the [Documentation](https://laravel-gpt.com).

Further Documentation
---------------------

[](#further-documentation)

For further documentation please see the [Documentation](https://laravel-gpt.com).

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Malte Kuhr](https://github.com/maltekuhr)

License
-------

[](#license)

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

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance53

Moderate activity, may be stable

Popularity49

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~119 days

Recently: every ~202 days

Total

8

Last Release

307d ago

Major Versions

v0.1.6 → v1.x-dev2025-10-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/7cd596aba4d17ee6fe8c2907b3dc978ad58bcb9972177fc2d6598510b847585b?d=identicon)[maltekuhr](/maintainers/maltekuhr)

---

Top Contributors

[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")[![maltekuhr](https://avatars.githubusercontent.com/u/80050109?v=4)](https://github.com/maltekuhr "maltekuhr (2 commits)")

---

Tags

chatgptchatgpt-apigpt-35-turbogpt-4laravelopenaiopenai-apiopenai-chatgptphplaravelopenaigpt

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.7M3.4k](/packages/craftcms-cms)[statamic/cms

The Statamic CMS Core Package

4.9k3.8M1.2k](/packages/statamic-cms)[unopim/unopim

UnoPim Laravel PIM

10.8k2.5k](/packages/unopim-unopim)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[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.

5226.7k](/packages/simplestats-io-laravel-client)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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