mediadreams/md_mastodon
Composer 安装命令:
composer require mediadreams/md_mastodon
包简介
Show data from Mastodon social network via API.
README 文档
README
With this extension you are able to show Mastodon toots on your TYPO3 website. It will collect data via the API and display it as a Mastodon social wall.
Screenshots
Example of Mastodon social wall:

Requirements
- TYPO3 v12.4 | v13.4
Installation
-
Install the extension by using composer (
composer req mediadreams/md_mastodon) or the extension manager -
Include the static TypoScript of the extension
-
Configure the extension by setting your own Typoscript constants
-
plugin.tx_mdmastodon_api.settings.includeCss
Include standard CSS styles for a masonry-layout if the items (toots).
Template layouts
You are able to configure template layouts in TsConfig:
tx_mdmastodon_api {
templateLayouts {
1 = First layout
2 = Second layout
}
}
Usage
Create a new entry of type Mastodon configuration
- Select module
List - Select a page where to store the record (can be any page)
- Click the button
Create new record - In the section
Mastodon social networking APIclickMastodon configuration
Now you are able to configure a Mastodon feed, which you want to show on the website.
Configure the feed
Title
This is for internal use only. It is needed, in order to select the feed in the plugin.Base Api URL
The Mastodon base api URL, likehttps://mastodon.social/api/v1/. You can leave this empty, if you have configured a default URL in typoscript constantplugin.tx_mdmastodon_api.settings.apiUrl.Api token
Mastodon API token. You can leave this empty, if you have configured a default API token in typoscript constantplugin.tx_mdmastodon_api.settings.apiToken.
ATTENTION: Make sure, that you have given the appropriate rights to your Mastodon application, when generating the API key.Api method
Select the Mastodon API method.Accounts
Statuses posted to the given account. See https://docs.joinmastodon.org/methods/accounts/#statusesAccount ID(required)
The ID of the Account in the Mastodon database.Exclude replies
Filter out statuses in reply to a different account.Exclude reblogs
Filter out boosts from the response.Pinned
Filter for pinned statuses only.
Hashtag timeline
View public statuses containing the given hashtag. See https://docs.joinmastodon.org/methods/timelines/#tagHashtag
The name of the hashtag (not including the # symbol).
Home timeline
View statuses from followed users. See https://docs.joinmastodon.org/methods/timelines/#homeList timeline
View statuses in the given list timeline. See https://docs.joinmastodon.org/methods/timelines/#listList ID
Local Mastodon ID of the list in the database.
Public timeline
Public timeline of instance. See https://docs.joinmastodon.org/methods/timelines/#public
Only media
Show only statuses with media attached.Update frequency
Decide how often the feed should be updated (number in seconds).Import date(read only)
Date of last update.Data(read only)
JSON response of the API call.
Create scheduler task
- Select module
Scheduler - Click the button
Add task - In field
ClassselectExecute console commands - Choose a
Frequency. Note: This can be set for example to 5 minutes and the respective Mastodon feed will be updated, as set in the configuration of the feed (fieldUpdate frequency). - In field
Schedulable Command. Save and reopen to define command argumentschoosemdmastodon:import - Save
Create Plugin to show entries
- Select module
Page - Select the page where to show the Mastodon feed
- Create new content element of type
General Plugin - Switch to tab
Pluginand selectMastodon - In field
Mastodon configurationfind the configuration, which you have created in the step before - Decide, how many entries to show be setting a value in field
Limit - Save
ATTENTION
Be aware, that the feed needs to be imported by running the scheduler task before it can be displayed by the plugin!
Bugs and Known Issues
If you find a bug, it would be nice if you add an issue on Github.
THANKS
Thanks a lot to all who make this outstanding TYPO3 project possible!
The TYPO3 project - inspiring people to share!
mediadreams/md_mastodon 适用场景与选型建议
mediadreams/md_mastodon 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 375 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 07 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「extension」 「social」 「typo3」 「social network」 「TYPO3 CMS」 「mastodon」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mediadreams/md_mastodon 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mediadreams/md_mastodon 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mediadreams/md_mastodon 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A custom URL rule class for Yii 2 which allows to create translated URL rules
Simple Sharing generates social media share links within CP entry pages, allowing you to quickly & easily share entries.
Set Links with a specific language parameter
The Yii2 extension uses jQuery jquery.carousel-1.1.min.js and makes image carousel from php array of structure defined.
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
UI Kit 3 Extension for Yii2
统计信息
- 总下载量: 375
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 33
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2023-07-06

