Download the PHP package vonheldenundgestalten/contao-openai-bundle without Composer

On this page you can find all versions of the php package vonheldenundgestalten/contao-openai-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package contao-openai-bundle

Contao OpenAI Bundle

The purpose of this extension is to quickly and easily generate meta descriptions and titles from page content using ChatGPT (OpenAI). Page content also includes dynamic pages generated through the Contao News extension.

In the screenshot below you can see some settings to get you started with relatively good results.

Getting started

Install by hand / command line with

or through the Contao Manager interface.

Add this to the .htaccess of a project

Compability

Contao Version PHP Version
^5.3 ^8.0

Important note

TinyMCE Plugin notes

Please make sure you don't have a custom be_tinyMCE.html5 template. If so, take a look at src/Resources/contao/templates/be_tinyMCE.html5 and adjust the relevant places manually.

Screenshots

Default configuration

After installation, only the OpenAI API key is required for regular pages. The extension enables page articles, uses the Chat Completions endpoint with gpt-5.6-luna, and prefills ready-to-use prompts for SEO titles and descriptions, a temperature of 0.5, and a maximum output of 300 tokens. All presets can still be changed in the Contao back end.

GPT-5.6 Luna is optimized for cost-sensitive, high-volume workloads. GPT-5.6 Terra and Sol are also available when a higher-capability model is preferred.

Headlines, rich text, HTML, code, lists, description lists, tables, accordion titles and bodies, captions, and other core descriptive fields are read automatically, including content elements nested inside accordions and element groups. Additional fields selected under Custom fields support plain values as well as nested PHP-serialized arrays; markup and structural headline metadata are removed before the page content is sent to OpenAI.

If mvo/contao-group-widget is installed, group fields are available under Custom fields and are read in their configured element and field order. Both the default serialized storage and entity storage are supported. The integration is optional; without the group widget, regular content extraction is unchanged.

Best practice

For the title:

Write a concise page title consisting of 5 to 6 words for the following text:

For the description:

Write an informative/emphatic/appealing page description for the following text that contains less than 160 characters including spaces:

The output language is detected from the analyzed page content and enforced internally. Existing custom prompts do not need to include a language instruction.

How to use

To-Do

new Features

Support

Contao OpenAI Bundle is a project for the community. Please consider giving feedback or creating pull requests to support the ongoing development.


All versions of contao-openai-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
contao/core-bundle Version ^5.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vonheldenundgestalten/contao-openai-bundle contains the following files

Loading the files please wait ...