kertz/twitteroauth
PHP Twitter OAuth library for authenticating with Twitter and making API requests via OAuth 1.0a. Provides a simple client for posting tweets, reading timelines, and accessing REST endpoints, with support for media uploads and error handling. Suitable for server-side integrations.
TwitterOAuth client, it supports decisions about per-user vs per-tenant OAuth tokens — relevant for agencies, schedulers, and B2B tools managing several brand accounts.Consider it when:
Look elsewhere when:
For executives: This is a low-cost, low-effort integration layer that lets us add "Sign in with X" and basic posting as a channel without a bespoke engineering project. It replaces custom OAuth code with a thin, configurable wrapper, compressing the build to days and reducing security surface area because token exchange and request signing are handled by a proven client underneath. Two caveats to budget for: X's API access is now priced and policy-constrained, so the business case depends on which endpoints we actually need; and the wrapper itself is a low-adoption fork, so we should treat it as a bootstrap and plan an exit to a maintained SDK or aggregator if the channel proves out.
For engineering: A Laravel service provider and Twitter facade over the TwitterOAuth library — config-driven consumer key/secret and access tokens, delegating calls to the underlying client. It buys you OAuth 1.0a handshake and request signing for free and keeps Twitter calls out of your domain services. Be explicit about limits: it is OAuth 1.0a-centric, v2/OAuth 2.0 PKCE support is not its focus, and the dependency is effectively unmaintained with no downstream adoption — so pin it, wrap it behind our own interface, and keep a swap path open. Recommended architecture: our SocialPublisher/SocialIdentity ports, with this package as one adapter.
How can I help you explore Laravel packages today?