xfix / myriad
All-in-one social media management SDK for Facebook, Instagram, LinkedIn, TikTok, and more.
Requires
- php: >=8.1
- ext-curl: *
- ext-json: *
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- phpunit/phpunit: ^9.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Xfix Myriad is a unified, extensible PHP SDK for social media management.
It provides a consistent interface for working with multiple social platforms from a single codebase. Posts are the initial pilot and testing foundation, with additional capabilities planned for future development.
Current Pilot: Posts
The current development focus is social media publishing across:
- TikTok
The Posts pilot covers:
- Text, image, and video content
- Publishing
- Scheduling
- Platform authentication
- Unified post models and results
- Platform-specific adapters
Other capabilities such as analytics, advertising, inbox management, content libraries, and advanced automation will be developed progressively.
Installation
composer require xfix/myriad
Quick Start
use Xfix\Myriad\Core\Myriad; use Xfix\Myriad\Models\Post; $myriad = new Myriad([ 'facebook' => [ 'app_id' => 'FB_APP_ID', 'app_secret' => 'FB_APP_SECRET', ], 'instagram' => [ 'app_id' => 'IG_APP_ID', ], 'linkedin' => [ 'app_id' => 'LI_APP_ID', ], 'tiktok' => [ 'app_id' => 'TT_APP_ID', ], ]); $myriad->auth()->setToken('facebook', 'ACCESS_TOKEN', [ 'page_id' => 'PAGE_ID', ]); $post = new Post(); $post->setContent('Hello from Xfix Myriad!') ->addMedia('/path/to/image.jpg'); $result = $myriad ->facebook() ->posts() ->publish($post); if ($result->isSuccess()) { echo $result->getPostId(); }
Architecture
src/
├── Core/
│ ├── Myriad.php
│ ├── AuthManager.php
│ ├── Config.php
│ └── HttpClient.php
│
├── Platform/
│ ├── PlatformInterface.php
│ ├── Facebook/
│ ├── Instagram/
│ ├── LinkedIn/
│ └── TikTok/
│
├── Services/
│ ├── Scheduler.php
│ ├── ContentLibrary.php
│ ├── WebhookHandler.php
│ └── AnalyticsAggregator.php
│
├── Models/
├── Exceptions/
└── Utils/
Platform adapters isolate API-specific implementation while the Core, Models, and Services provide a consistent application-level interface.
Roadmap
The project is intentionally being developed incrementally.
Posts
↓
Analytics
↓
Ads
↓
Inbox
↓
Content Management
↓
Automation & Social Intelligence
The Posts pilot will establish and validate the core architecture before expanding into these additional capabilities.
Requirements
- PHP 8.0+
- Guzzle 7+
- ext-curl
License
MIT
Contributing
Contributions and improvements are welcome. Please open an issue or submit a pull request.
Xfix Myriad — one SDK for multiple social platforms.