Blog2Social API PHP SDK
PHP SDK for Social Media API Integration
Build social media publishing into your PHP applications with the Blog2Social PHP SDK. Integrate authentication, social account management, and publishing workflows for links, images, and videos through one unified API.

What is the PHP-SDK?
The Blog2Social PHP SDK is an open-source PHP library that helps developers automate repetitive tasks.
Why use the SDK?
Reduce repetitive API integration work in PHP
Social media integration looks simple until you need authentication, OAuth, connected accounts, different content types, and platform-specific publishing responses. The Blog2Social PHP SDK abstracts these repetitive tasks into reusable PHP classes.
- Authenticate users through one consistent workflow
- Connect and manage social media accounts
- Publish content with reusable service methods
- Evaluate publishing results per target
Developer tip: The SDK does not replace the API. It simplifies working with the Blog2Social API when your project is built with PHP.
REST API or PHP SDK?
| Direct REST API | Blog2Social PHP SDK |
|---|---|
| Any programming language | Optimized for PHP |
| Manual HTTP requests | Object-oriented PHP classes |
| Manual authentication handling | Simplified authentication workflow |
| Manual response handling | Reusable service methods |
| Full API access | Full API access |
Blog2Social PHP SDK Architecture
PHP SDK-API Architecture
How the PHP SDK-API Architecture is structured
In short: your application calls the SDK, the SDK communicates with the Blog2Social API, and the API publishes to the selected social media networks.
The Blog2Social PHP SDK gives your application one structured integration layer for API-based social media publishing. Your product controls the user experience, while the SDK provides reusable PHP methods for recurring integration tasks.
The Blog2Social API handles platform-specific requirements behind the scenes, including validation, authorization, publishing logic, rate limits, and communication with connected social networks.
Built for real-world applications
Use the SDK wherever your product needs social media publishing
Start integrating the Blog2Social PHP SDK with Composer
Install the SDK, authenticate your application and users, connect social accounts, and publish content through a structured PHP integration path.
Composer installation
Install the SDK in your PHP project
composer require adenion/blog2social-api-php-sdk:dev-mainQuick Start Workflow
Most integrations follow the same path from installation to publishing result evaluation.
Install SDK
Add the Blog2Social PHP SDK to your project with Composer.
Authenticate application
Initialize the SDK client with your service token.
Authenticate user
Authenticate users and store the returned access token securely.
Connect social account
Connect the user’s social media accounts through the Blog2Social API workflow.
Publish content
Create and publish posts, links, images, or videos to selected social networks.
Evaluate result
Read API responses and publishing results directly in your application workflow.
Key Features
Everything you need to integrate social media publishing into PHP applications
Authentication
Secure application and user authentication for API-based workflows.
OAuth
Connect social accounts with simplified OAuth-based authorization.
Publishing
Publish links, images, and videos through one consistent API workflow.
Accounts
Manage and retrieve connected social media accounts for publishing.
Composer Ready
Install, update, and autoload the SDK with Composer.
Modern PHP
Built for PHP 8.1+ and PSR-4 compliant autoloading.
Result Handling
Evaluate publishing results, status messages, and API responses.
Full API Access
Use SDK convenience methods while building on the Blog2Social API.
FAQ
Frequently Asked Questions about the Blog2Social PHP SDK
Ready to build social media publishing into your PHP application?
Use the open-source PHP SDK to reduce development effStart with the Blog2Social PHP SDK on GitHub or explore the full REST API documentation for every available endpoint.ort and add social media publishing to your product faster.
