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 Laravel Package

endroid/twitter

Endroid Twitter is a lightweight PHP library that simplifies requests to the Twitter API using Abraham TwitterOAuth. Install it with Composer, then use your consumer keys to retrieve timelines or post status messages with optional media attachments.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for social distribution. This package embodies the "buy the smallest layer" option: a ~one-class wrapper over abraham/twitteroauth exposing two primitives — getTimeline(n) and postStatus(text, media[]). If our roadmap only needs "publish a post with an image" and "read a user's recent posts," this is the full scope of the integration. Use it as a scoping checklist, not as a dependency.
  • Dependency policy and tech-debt triage. Archived, 32 stars, zero dependents, README-level maturity. This is a clean worked example for a "no unmaintained dependencies in the critical path" rule, and for deciding between replace vs. fork and own when a transitive library goes quiet.
  • Own vs. aggregate the X/Twitter channel. The existence of a 40-line wrapper is evidence that X integration is a commodity. The real decision is whether we own the API tier, rate-limit handling, OAuth token lifecycle, and policy compliance — or push that to an aggregator (Buffer/Ayrshare/Typefully-style APIs) and keep our codebase free of it.
  • Feature prioritization for a "share to social" roadmap item. Reading timelines is the expensive half (pagination, rate limits, caching, GDPR/ToS constraints on storing third-party content); publishing is cheap. This package's shape helps frame that split in a roadmap review.
  • Migration/exit planning. If any internal tool already depends on it, this frames the decision to swap the wrapper for the underlying SDK or the X API v2 client, rather than patch it.

When to Consider This Package

Adopt only in narrow, low-stakes circumstances:

  • You already use it, the integration is non-critical (internal tooling, a marketing helper script), and you are prepared to fork and pin it — the public repo is archived and will receive no updates.
  • You want a reference implementation. Read the source to see how little code a publish+timeline client requires, then write your own against the maintained SDK.
  • A throwaway prototype where the fastest path to "post a tweet from a PHP script" matters more than longevity.

Look elsewhere — in practice, almost always:

  • Any greenfield work. Use abraham/twitteroauth directly (it's the actual dependency here) or an X API v2 client. This wrapper targets the largely retired v1.1 surface and adds a layer you'd have to debug through.
  • Requirements beyond publish/read: OAuth 2.0 / PKCE, chunked media upload, webhooks and account-activity, multi-account management, analytics, rate-limit-aware queuing, or anything needing current X API tier behavior.
  • Anything user-facing or revenue-adjacent, where an unmaintained dependency in the auth/publishing path is an unacceptable operational risk.
  • Teams without appetite for owning an API tier — an aggregator is the correct buy decision, not a wrapper.

How to Pitch It (Stakeholders)

For executives: This is a small, archived PHP wrapper for Twitter/X. It is not a strategic asset and I do not recommend adopting it. Its value to us is as a sizing exercise: it demonstrates that "post to X and read a timeline" is roughly a day of engineering, not a quarter. That tells us the social-distribution feature is cheap to build but expensive to own — the ongoing cost is API pricing, token management, rate limits, and platform policy changes, not code. Recommendation: do not adopt; if the roadmap needs X distribution, budget the API tier or an aggregator and treat the integration as a commodity to be outsourced, not a differentiator to be built.

For engineering: Thin, single-purpose wrapper around abraham/twitteroauth, archived, no maintainers, zero dependents, v1.1-era endpoints. The right move is either the underlying SDK directly (removing an unmaintained indirection we'd otherwise have to fork) or an X API v2 client. If any internal service currently uses it, replacing it is a small, bounded task — flag it for the next maintenance window rather than the current cycle, unless that service is user-facing.

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.
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route