Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Twitter Bundle

Twitter Bundle Laravel Package

friendsofsymfony/twitter-bundle

Symfony bundle that integrates the Twitter API into your application, providing services for OAuth authentication, posting tweets, and API calls, plus simple YAML configuration and Twig helpers for rendering tweets.

View on GitHub
Deep Wiki
Context7

UNMAINTAINED. Please use HWIOAuthBundle as a replacement for FOSTwitterBundle.

Frequently asked questions about Twitter Bundle
Can I install friendsofsymfony/twitter-bundle in a Laravel application?
No, direct installation into Laravel is not advisable. The package is a Symfony bundle that assumes Symfony bundle registration, dependency injection conventions, configuration loading, and Symfony HTTP and security primitives. Laravel's service container, facades, config repository, and middleware pipeline do not map cleanly, so it would require a compatibility shim or a fork.
What is FOSTwitterBundle used for?
FOSTwitterBundle is a Symfony bundle that integrates the Twitter API into Symfony applications. It provides services for OAuth authentication, posting tweets, and API calls, along with YAML configuration and Twig helpers for rendering tweets. It is not a Laravel package and is archived and unmaintained.
Is friendsofsymfony/twitter-bundle maintained or safe for production?
No, the repository is archived and unmaintained, with 0 dependents and only 142 stars. Archived status means no security patches, no PHP or Symfony compatibility updates, no Twitter/X API migration work, and no maintainer support. Using it in production creates high technical and operational risk.
What should I use instead of FOSTwitterBundle for Twitter/X OAuth in Laravel?
Use Laravel Socialite for OAuth login flows and a maintained Twitter/X API client or Laravel's HTTP client for API calls. Handle token storage, refresh, rate limiting, retries, and API jobs with Laravel-native services and queues. The archived Symfony bundle is better treated as a design reference than a deployment dependency.
Does FOSTwitterBundle support the current Twitter/X API and OAuth versions?
Almost certainly not. The archived bundle targets legacy Twitter OAuth and API patterns, and there is no maintainer work to migrate it to current X/Twitter API and OAuth behavior. Validate any borrowed endpoint mapping or token refresh logic against current API documentation before using it.
How should I configure Twitter API credentials if I port FOSTwitterBundle concepts to Laravel?
Do not reuse the bundle's Symfony configuration semantics. Put credentials in Laravel config and environment variables, wire them through Laravel Socialite or a maintained SDK, and store user tokens encrypted with rotation and revocation handling. Keep the integration behind a Laravel service or interface so it can be tested and replaced.
What Laravel and PHP versions can work with FOSTwitterBundle?
There are no officially supported Laravel or PHP versions for this package. It is a Symfony bundle with Symfony and PHP version constraints, and any Laravel compatibility would be incidental and unsupported. Modern Laravel and PHP versions are likely to conflict with old constraints and deprecated OAuth libraries.
How should I test a Laravel Twitter/X integration migrated from FOSTwitterBundle?
Start with contract tests against mocked API responses and use Laravel's HTTP fake capabilities for API calls. Add sandbox OAuth callback tests, token refresh and expiry tests, queue and rate-limit tests, and failure-case coverage for revoked tokens and changed response schemas. Do not rely on the archived bundle's tests for confidence.
What are the main production risks of using an archived Symfony Twitter bundle in Laravel?
Common failures include expired or revoked tokens, API version deprecation, OAuth callback mismatches, rate-limit exhaustion, changed response schemas, and Composer dependency conflicts. Archived status increases the blast radius of each because there are no security patches or compatibility fixes. There is also no vendor or community support path.
Is there any reason to keep FOSTwitterBundle as a dependency when migrating to Laravel?
Usually no. Keep it only as a reference for requirements, endpoint mapping, token refresh flow, or DTO shapes after validating those details against current API documentation. Reimplement the integration behind a Laravel service or interface, add tests, run a sandbox OAuth and API test, and then remove the legacy Symfony dependency.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package