PHPackages                             raduhoria/openai-textgenerator-field - 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. raduhoria/openai-textgenerator-field

ActiveKirby-plugin[Utility &amp; Helpers](/categories/utility)

raduhoria/openai-textgenerator-field
====================================

Kirby CMS OpenAI text generator

1.0.3(3y ago)1323MITJavaScriptPHP &gt;=7.4

Since Jan 17Pushed 3y ago2 watchersCompare

[ Source](https://github.com/raduhoria/openai-textgenerator-field)[ Packagist](https://packagist.org/packages/raduhoria/openai-textgenerator-field)[ RSS](/packages/raduhoria-openai-textgenerator-field/feed)WikiDiscussions main Synced 1mo ago

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

Kirby CMS – OpenAI generated article text
=========================================

[](#kirby-cms--openai-generated-article-text)

Generate text for Kirby CMS () articles with OpenAI APIs (field &amp; block item).

**Features:**

- Enable the OpenAI API call to retrieve generated text using `text-davinci-003` model
- Custom field with prompt (questions)
- Block item that reuse the custom field
- Saving the prompts (questions) for reuse its

Overview
--------

[](#overview)

> This plugin is completely free and published under the MIT license. However, if you are using it in a commercial project and want to help me keep up with maintenance, please consider to **[❤️ sponsor me](https://github.com/sponsors/horia22)** for securing the continued development of the plugin.

[![Block item](https://github.com/raduhoria/openai-textgenerator-field/raw/main/readmeimages/Screenshot%202023-01-17%20122425.png)](https://github.com/raduhoria/openai-textgenerator-field/blob/main/readmeimages/Screenshot%202023-01-17%20122425.png)[![](https://github.com/raduhoria/openai-textgenerator-field/raw/main/readmeimages/Screenshot%202023-01-17%20122511.png)](https://github.com/raduhoria/openai-textgenerator-field/blob/main/readmeimages/Screenshot%202023-01-17%20122511.png)[![](https://github.com/raduhoria/openai-textgenerator-field/raw/main/readmeimages/Screenshot%202023-01-17%20143949.png)](https://github.com/raduhoria/openai-textgenerator-field/blob/main/readmeimages/Screenshot%202023-01-17%20143949.png)

---

1. Installation
---------------

[](#1-installation)

This version of the plugin requires PHP 7.4 and Kirby 3.6.0 or higher. The recommended way of installing is by using Composer:

```
$ composer require raduhoria/openai-textgenerator-field

```

Alternatively, download and copy this repository to `/site/plugins/openai-textgenerator-field`

2. Settings
-----------

[](#2-settings)

Please consult the link for getting API key:

Please consult the link for getting Organization ID:

Just edit file:

```
/site/config/config.php

```

and add the block:

```
'raduhoria.openai-textgenerator-field' => [
  'openaiapikey' => '', //your OpenAI API key
  'openaiorganization' => '', //your organization ID
  'max_tokens' => 4000, //max_tokens variable according with your OpenAI package
  'temperature' => 0.7,
];

```

Please consult the link for understand the `temperature` variable in completions API:

### Prerequisites

[](#prerequisites)

If you're testing locally, the plugin is using php curl function. You need to ensure that cacert.pem certificate is installed.

1. Download the latest cacert.pem from
2. Add the following line to php.ini:

```
[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo = your full path\cacert.pem

```

(if this is shared hosting and you don't have access to php.ini then you could add this to .user.ini in public\_html).

3. Setup
--------

[](#3-setup)

This field can be used in blocks fieldsets `- aitext` option or like a field type `openaitextgeneratorfield`:

```
fields:
    text:
        type: blocks
        fieldsets:
            - aitext
```

```
fields:
    openaitextgeneratorfield:
        type: openaitextgeneratorfield
        label: OpenAI text generator
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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

Every ~0 days

Total

3

Last Release

1211d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/46c7bfd3891ec79c0401dc350dac1ada9035c37ca24b59da17f7d0552cd94bc1?d=identicon)[raduhoria](/maintainers/raduhoria)

---

Top Contributors

[![raduhoria](https://avatars.githubusercontent.com/u/35099522?v=4)](https://github.com/raduhoria "raduhoria (11 commits)")

---

Tags

GPT-3openaikirby-pluginkirby-cmskirby3

### Embed Badge

![Health badge](/badges/raduhoria-openai-textgenerator-field/health.svg)

```
[![Health](https://phpackages.com/badges/raduhoria-openai-textgenerator-field/health.svg)](https://phpackages.com/packages/raduhoria-openai-textgenerator-field)
```

###  Alternatives

[belugadigital/kirby-navigation

Kirby 5 field for hierarchical menus with drag &amp; drop level indentation.

8713.4k](/packages/belugadigital-kirby-navigation)[bnomei/kirby3-dotenv

Kirby Plugin for environment variables from .env

4144.1k1](/packages/bnomei-kirby3-dotenv)[beebmx/kirby-env

Enable env variables to Kirby

2037.9k2](/packages/beebmx-kirby-env)[bnomei/kirby3-recently-modified

Kirby Section to display recently modified content pages

309.3k](/packages/bnomei-kirby3-recently-modified)[moritzebeling/kirby-favicon

Kirby plugin to meet all favicon needs

144.8k](/packages/moritzebeling-kirby-favicon)

PHPackages © 2026

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