Download the PHP package owlstack/owlstack-laravel without Composer
On this page you can find all versions of the php package owlstack/owlstack-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download owlstack/owlstack-laravel
More information about owlstack/owlstack-laravel
Files in owlstack/owlstack-laravel
Package owlstack-laravel
Short Description Laravel integration for Owlstack — publish content to Telegram, X (Twitter), Facebook, LinkedIn, Instagram, Discord, Slack, Reddit, Pinterest, WhatsApp, and Tumblr from your Laravel application.
License MIT
Homepage https://github.com/alihesari/owlstack-laravel
Informations about the package owlstack-laravel
FoPost for Laravel
Laravel integration for social media publishing
Laravel integration for Fopost Core — publish content to 11 social media platforms (Telegram, X/Twitter, Facebook, LinkedIn, Instagram, Discord, Slack, Reddit, Pinterest, WhatsApp, and Tumblr) from your Laravel application.
Note: This package was previously
alihesari/larasap. It has been rewritten from scratch to usefopost/social-coreas its engine.
Requirements
- PHP 8.1+
- Laravel 10, 11, or 12
Installation
Publish the config file:
Configuration
Add your credentials to .env:
Only platforms with valid credentials are registered. If you leave Twitter credentials empty, only Telegram and Facebook will be available.
Usage
Via Dependency Injection (recommended)
Via Facade
Return Value
All methods return a Fopost\Social\Publishing\PublishResult:
Telegram Features
Twitter / X Features
Facebook Features
LinkedIn Features
Discord Features
Slack Features
Reddit Features
Instagram Features
Pinterest Features
WhatsApp Features
Tumblr Features
Using Post Objects Directly
For full control, create Fopost\Social\Content\Post objects:
Events
The package dispatches events through Laravel's event system:
Fopost\Social\Events\PostPublished— fired on successful publishFopost\Social\Events\PostFailed— fired on publish failure
Architecture
This package is a thin wrapper around fopost/social-core. The architecture:
The service provider wires everything together:
FopostConfig— built fromconfig/fopost-social.phpHttpClient— core's cURL client (with optional proxy)- Platform instances — only registered if credentials are configured
PlatformRegistry— holds all active platformsPublisher— orchestrates publishing with event dispatchSendTo— high-level API bound as'fopost-social'singleton
Testing
Or run PHPUnit directly:
In your own tests, mock HttpClientInterface on the container:
Migration from alihesari/larasap
If upgrading from the old package:
- Replace
alihesari/larasapwithfopost/social-laravelincomposer.json - Rename
config/larasap.php→config/fopost-social.php(see new format above) - Replace
Alihesari\Larasap\SendTowithFopost\Social\Laravel\SendTo - Replace static calls (
SendTo::telegram(...)) with DI or the newFopostfacade - Update event listeners if you had custom ones
- The
facebook/graph-sdkandfacebook/php-business-sdkdependencies are no longer needed
Key API changes:
SendTo::telegram($msg)→$sendTo->telegram($msg)(instance method)SendTo::x($msg)→$sendTo->x($msg)or$sendTo->twitter($msg)SendTo::facebook('link', $data)→$sendTo->facebook($msg, 'link', $data)- All methods now return
PublishResultinstead of raw arrays
License
MIT
All versions of owlstack-laravel with dependencies
owlstack/owlstack-core Version ^1.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0