hamzahassanm/laravel-social-auto-post
A Laravel package for automatically publishing your posts to social media. Schedule and auto-share content across connected platforms, queue posts, and integrate social posting into your app with minimal configuration.
SocialMediaService centralizes validation via validateTextUrl() and validateMediaInput(), while platform-specific services consume shared behavior. SafeMediaFetcher introduces a clear security boundary for remote media retrieval. This is a reasonable fit for a Laravel package that orchestrates social-platform API calls and media uploads.downloadFile() is gone, SafeMediaFetcher::execute() is private, and the $fetchHandler testing backdoor is removed. Applications and test suites that reference those APIs will need code changes before upgrading.RateLimitException is actually treated. SSRF hardening is a strong security improvement but may alter media-fetch success rates for legitimate CDN, proxy, or IPv6 scenarios.RateLimitException retried using Retry-After, or does it fail-fast as a 4xx?downloadMediaToTempFile() cleaned up reliably on success and failure?downloadFile(), SafeMediaFetcher::execute(), and removed test hooks?downloadFile(), direct SafeMediaFetcher::execute() usage, and tests relying on $fetchHandler; replace with downloadMediaToTempFile() and the public fetch() wrapper. Update exception handling to distinguish RetryableException from RateLimitException and other failures.downloadFile() must be updated. The private execute() method also means tests should mock at the HTTP/client boundary rather than the fetcher internals.downloadMediaToTempFile() and the secure fetch() wrapper.$fetchHandler or direct fetcher execution.downloadFile() simplifies the media path, and downloadMediaToTempFile() should reduce OOM risk. Short-term maintenance cost increases because breaking changes require code and test updates.RateLimitException should have explicit, observable handling.How can I help you explore Laravel packages today?