PHPackages                             ayacoo/news-tldr - 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. ayacoo/news-tldr

ActiveTypo3-cms-extension[Utility &amp; Helpers](/categories/utility)

ayacoo/news-tldr
================

Creates a short summary for news via ChatGPT

2.0.2(4mo ago)2358GPL-2.0-or-laterPHPPHP &gt;=8.2 &lt; 8.6

Since Apr 14Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/ayacoo/news-tldr)[ Packagist](https://packagist.org/packages/ayacoo/news-tldr)[ Docs](https://www.ayacoo.de)[ RSS](/packages/ayacoo-news-tldr/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (10)Used By (0)

TYPO3 Extension news-tldr
=========================

[](#typo3-extension-news-tldr)

1 Features
----------

[](#1-features)

The extension makes it possible to create short news summaries using ChatGPT.

2 Hints
-------

[](#2-hints)

- The code can be used and further developed as desired, e.g. for a backport to version 11
- Only the field bodytext is read. Other linked content elements must be read and manipulated via an event.

3 Usage
-------

[](#3-usage)

### 3.1 Prerequisites

[](#31-prerequisites)

To use this extension, you need the following requirements:

- PHP version 8.2 or higher
- TYPO3 version 13
- [News](https://github.com/georgringer/news) Extension 11 or higher
- [ChatGPT API Token](https://platform.openai.com/docs/guides/chat) (Please note the number of tokens and costs)

### 3.2 Installation

[](#32-installation)

#### Installation using Composer

[](#installation-using-composer)

The recommended way to install the extension is using Composer.

Run the following command within your [Composer](https://getcomposer.org/) based TYPO3 project:

```
composer require ayacoo/news-tldr

```

### 3.3 Event / EventListener

[](#33-event--eventlistener)

To modify the ChatGPT request, e.g. to change the payload, there is an event: `ModifyChatGptContentEvent`.

### EventListener registration

[](#eventlistener-registration)

```
services:
  Vendor\Ext\Listener\ContentListener:
    tags:
      - name: event.listener
        identifier: 'news-tldr/content'
        method: 'setContent'
        event: Ayacoo\NewsTldr\Event\ModifyChatGptContentEvent

```

### EventListener

[](#eventlistener)

```
