PHPackages                             dejury/gptfaker - 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. dejury/gptfaker

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

dejury/gptfaker
===============

An package that integrates with FakerPHP and generates AI based texts

v1.3.0(2y ago)02.2k1[1 PRs](https://github.com/MotivoZwolle/gptfaker/pulls)MITPHPPHP ^8

Since Jun 29Pushed 2y ago2 watchersCompare

[ Source](https://github.com/MotivoZwolle/gptfaker)[ Packagist](https://packagist.org/packages/dejury/gptfaker)[ RSS](/packages/dejury-gptfaker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (7)Used By (0)

GPTFaker
========

[](#gptfaker)

This package adds the possibility to use GPT to generate fake text. It completely integrates with Laravel and their factories.

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

[](#installation)

Install the package using composer:

```
composer require dejury/gptfaker --dev
```

Add this to your `.env` file:

```
FAKERGPT_OPENAI_API_KEY=
```

Config
------

[](#config)

The config file can be published with the following command:

```
php artisan vendor:publish --provider="Motivo\GptFaker\GptFakerServiceProvider"

```

Usage
-----

[](#usage)

Use it in your Laravel Factory:

```
