Download the PHP package xima/xima-twitter-client without Composer

On this page you can find all versions of the php package xima/xima-twitter-client. 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 xima-twitter-client

![Extension icon](Resources/Public/Icons/Extension.svg) # TYPO3 extension `xima_twitter_client` [![Supported TYPO3 versions](https://typo3-badges.dev/badge/xima_twitter_client/typo3/shields.svg)](https://extensions.typo3.org/extension/xima_twitter_client) [![Composer](https://typo3-badges.dev/badge/xima_twitter_client/composer/shields.svg)](https://packagist.org/packages/xima/xima-twitter-client)

This extension uses the Twitter/X API v2 to import and display tweets. It provides a scheduler command for automated imports and a content element for frontend display.

Requirements

To use the Twitter API, you need a developer account at developer.twitter.com. Register your application and obtain:

The database must be configured to use the utf8mb4 charset and collation. The standard MySQL utf8 charset does not support 4-byte characters such as emojis, which are common in tweets. Without utf8mb4, saving tweets containing emojis will produce an SQL error.

Install

Composer

TER

TER version

Download the zip file from TYPO3 extension repository (TER).

Setup

1. Add Site Set

Add the extension's site set to your site configuration (config/sites/<your-site>/config.yaml):

This automatically includes the TypoScript and PageTSconfig.

2. Configure API Credentials

Add the credentials to your extension configuration (e.g., in additional.php):

3. Create Account Records

  1. Create a new SysFolder and enable the "Twitter" module
  2. Add a new Account record inside this folder
  3. Enter the Twitter username you want to fetch tweets from
  4. Configure the maximum number of tweets to fetch

Usage

Import Command

Fetch tweets from all configured accounts:

Command Options

Option Description
--account, -a Fetch tweets for a specific account UID only
--dry-run Validate configuration without fetching tweets
-v Verbose output with detailed error messages

Examples

Cleanup Command

Remove tweets (and their associated images) older than a given number of days:

Command Options

Option Description
--lifetime, -l Maximum age of tweets in days (default: 180)
--dry-run Preview what would be deleted without actually deleting

Examples

Scheduler Task

You can set up both the import and cleanup commands as scheduler tasks for automated execution.

Content Element

Add the Twitter content element to any page to display the imported tweets:

Configuration

Site Settings

Override the default settings in your site configuration (config/sites/<your-site>/settings.yaml):

Extension Configuration

Key Description Example
api_key Twitter API Key
api_secret Twitter API Secret
access_key Twitter Access Token
access_secret Twitter Access Token Secret
image_storage FAL storage path for downloaded images 1:Images/Twitter

Troubleshooting

API Authentication Errors

Ensure all four API credentials are correctly configured. Use the --dry-run option to validate your configuration:

Image Storage Errors

Make sure the configured image_storage path exists and is writable. The path should be a valid FAL combined identifier (e.g., 1:Images/Twitter).

Rate Limiting

The Twitter API has rate limits. If you encounter rate limit errors, reduce the import frequency or the number of tweets fetched per account.

License

This project is licensed under GNU General Public License 2.0 (or later).

Contribute

This extension was made by Maik Schneider. Feel free to contribute!

Thanks to XIMA!


All versions of xima-twitter-client with dependencies

PHP Build Version
Package Version
Requires abraham/twitteroauth Version ^4.0
typo3/cms-core Version ^13.4 || ^14.0
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 xima/xima-twitter-client contains the following files

Loading the files please wait ...