PHPackages                             ayacoo/tiktok - 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/tiktok

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

ayacoo/tiktok
=============

Provides a Tiktok online media helper

3.0.2(4mo ago)23.5k↑40%2GPL-2.0-or-laterPHPPHP &gt;=8.2 &lt; 8.6CI passing

Since Dec 30Pushed 4mo ago2 watchersCompare

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

READMEChangelog (9)Dependencies (14)Versions (15)Used By (0)

TYPO3 Extension tiktok
======================

[](#typo3-extension-tiktok)

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

[](#1-features)

- Tiktok videos can be created as a file in the TYPO3 file list
- Tiktok videos can be used and output with the text with media element
- Update metadata via command

2 Usage
-------

[](#2-usage)

### 2.1 Installation

[](#21-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/tiktok

```

### 2.2 TypoScript settings

[](#22-typoscript-settings)

#### Privacy

[](#privacy)

With `plugin.tx_tiktok.settings.privacy = 1` you can ensure that the IFrame is built with data-src instead of src. If you need more options to influence the HTML, you can use a PSR-14 event.

### 2.3 Hints

[](#23-hints)

#### Emojis

[](#emojis)

For better compatibility, emojis are removed from the title or description.

#### Output

[](#output)

For the output, the HTML is used directly from [Tiktok](https://developers.tiktok.com/doc/embed-videos).

#### SQL changes

[](#sql-changes)

In order not to have to access the oEmbed interface permanently, four fields are added to the sys\_file\_metadata table

3 Developer Corner
------------------

[](#3-developer-corner)

### 3.1 ModifyTiktokOutputEvent

[](#31-modifytiktokoutputevent)

If you want to modify the output of the Tiktok HTML, you can use the `ModifyTiktokOutputEvent`.

##### EventListener registration

[](#eventlistener-registration)

In your extension, extend `Configuration/Services.yaml` once:

```
Vendor\ExtName\EventListener\TiktokOutputEventListener:
    tags:
        -   name: event.listener
            identifier: 'tiktok/output'
            event: Ayacoo\Tiktok\Event\ModifyTiktokOutputEvent
```

```
