Plume offers a robust X (Twitter) API v2 client tailored for Laravel, featuring clean facades, typed DTOs, and user-scoped operations. With built-in test fakes, OAuth auto-refresh, and an extensive collection of artisan commands, developers can seamlessly integrate and interact with the X API while enjoying an enhanced development experience.
Plume serves as a robust client for the X (formerly Twitter) API v2, built specifically for Laravel. It encapsulates the entire API's functionality behind an elegant facade, allowing developers to seamlessly integrate X API features into their applications. With features such as typed Data Transfer Objects (DTOs), automatic pagination, and user-scoped operations, Plume enhances the development experience by providing a structured and user-friendly interface.

Creating a Post:
use Plume;
$post = Plume::createPost('Hello from Plume!');
Searching Recent Tweets:
$results = Plume::searchRecent('laravel');
foreach ($results->data as $post) {
echo "{
$post->text\n";
}
Fetching User Profile:
$me = Plume::me();
echo $me->publicMetrics->followersCount;
Plume is designed to cover every endpoint in the X API v2, ensuring developers have access to all necessary features including posts, user timelines, likes, retweets, bookmarks, and more. Each method is fully typed, providing a clear contract for usage.
Plume is simple to incorporate into your Laravel application. It requires PHP 8.2+ and is compatible with Laravel versions 11 and 12.
For installation, add with Composer and update your .env for authentication:
composer require jkudish/plume
Plume positions itself as the definitive X API package for Laravel, focusing on modern development needs with its rich set of features aimed at improving developer experience and application performance. For detailed instructions on contributions or managing vulnerabilities, please refer to CONTRIBUTING.md and SECURITY.md.
For further information and detailed usage instructions, visit the official repository.
No comments yet.
Sign in to be the first to comment.