Skip to content

Feature/rewrite with synglify core#46

Closed
alihesari wants to merge 22 commits intomasterfrom
feature/rewrite-with-synglify-core
Closed

Feature/rewrite with synglify core#46
alihesari wants to merge 22 commits intomasterfrom
feature/rewrite-with-synglify-core

Conversation

@alihesari
Copy link
Member

No description provided.

Remove old service provider, platform API implementations,
custom exceptions, test doubles, and old test files.

Deleted:
- src/LarasapServiceProvider.php
- src/Services/{Telegram,X,Facebook}/ (all files)
- config/config.php
- tests/bootstrap.php, tests/SendToTest.php
- tests/TestDoubles/, tests/Feature/, tests/Integration/
- tests/Unit/{FacebookApiTest,TelegramApiTest,XApiTest}.php
- Rename package to synglify/synglify-laravel
- Update namespace to Synglify\Laravel\
- Add synglify/synglify-core @dev dependency via path repository
- Remove facebook/graph-sdk and facebook/php-business-sdk
- Update auto-discovery for SynglifyServiceProvider and Synglify facade
Environment-based configuration for Telegram, Twitter, Facebook
platforms and optional proxy settings. Replaces config/config.php.
Register all core services into Laravel container:
- SynglifyConfig (filters platforms by required credentials)
- HttpClient with optional proxy support
- Platform formatters and platform instances
- PlatformRegistry, Publisher, EventDispatcher, SendTo
Bridges synglify-core EventDispatcherInterface to Laravel's
event system for PostPublished/PostFailed event dispatching.
Replace static method calls with DI-based instance methods:
- telegram() with attachment, keyboard, signature support
- twitter() and x() alias
- facebook() for link/photo/video posts
- publish() and toAll() for Post objects
- Extended Telegram types: location, venue, contact, voice
Provides static proxy to the SendTo singleton for convenience usage.
- phpunit.xml: update source element for PHPUnit 10/11
- TestCase: Orchestra Testbench base with mock HttpClient,
  test credentials for all 3 platforms, response helpers
ServiceProviderTest: 13 tests covering container bindings,
config filtering, and config publishing.
SendToTest: 14 tests covering telegram, twitter, facebook,
signature, location, venue, contact, toAll, and failures.
5 tests: facade resolution, PostPublished/PostFailed event
dispatch, full publish workflow, missing platform handling.
- Update composer.json dependency to synglify/synglify-laravel
- Rewrite SocialMediaController with DI and facade usage
- Replace config/larasap.php with config/synglify.php
Complete documentation: installation, configuration, usage via DI
and facade, all platform features, Post objects, events, architecture,
testing guide, and migration guide from alihesari/larasap.
…ord, Slack, Instagram, Pinterest, WhatsApp, Tumblr)
- Rename all namespaces from Synglify\Laravel to Owlstack\Laravel
- Rename SynglifyServiceProvider to OwlstackServiceProvider
- Rename Synglify facade to Owlstack facade
- Rename config/synglify.php to config/owlstack.php
- Update all references, tests, examples, and documentation
- Update composer.json package name and autoload config
…th repository with Packagist dependency\n- Change owlstack-core constraint from @dev to ^1.0\n- Set minimum-stability from dev to stable\n- Add homepage and support URLs\n- Add composer test script\n- Update description and keywords for all 11 platforms
…edIn platform registration in ServiceProvider\n- Add LinkedIn config (access_token, person_id, organization_id)\n- Add SendTo convenience methods: linkedin(), reddit(), discord(),\n slack(), instagram(), pinterest(), whatsapp(), tumblr()\n- Update Facade docblocks for all 11 platforms
…entials to TestCase and linkedinSuccess() helper\n- Add testLinkedInTextPost() in SendToTest\n- Update testToAllPublishesToAllPlatforms() to expect 4 platforms\n- Update ServiceProviderTest to verify LinkedIn registration\n- Fix .env.testing: correct Twitter and Facebook env var names\n- Add LinkedIn env vars to .env.testing
…use Packagist dependency\n- Change minimum-stability from dev to stable\n- Add all 11 platform configs to example owlstack.php\n- Add testLinkedIn() controller method and route
…P 7.0/7.1, outdated)\n- Add .github/workflows/tests.yml with matrix:\n PHP 8.1–8.4 × Laravel 10–12\n- Exclude incompatible PHP 8.1 + Laravel 11/12 combos
…LOG.md with accurate feature entries\n- Fix CONTRIBUTING.md repo URLs (laravel-social-auto-posting → owlstack-laravel)\n- Add structured bug report template to ISSUE_TEMPLATE.md\n- Add CI/Packagist badges to README.md\n- Add all 11 platform usage examples and env vars to README\n- Update architecture diagram to include LinkedIn
@alihesari alihesari closed this Feb 15, 2026
@alihesari alihesari deleted the feature/rewrite-with-synglify-core branch February 15, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant