jxx0410/bundlesocial-php
Composer 安装命令:
composer require jxx0410/bundlesocial-php
包简介
PHP SDK for overseas social media API
README 文档
README
PHP SDK for OverseasSocial API -- post to 14+ social platforms, manage uploads, teams, analytics, and more.
Requirements
- PHP >= 7.4
- ext-fileinfo, ext-json
Installation
composer require jxx0410/bundlesocial-php
Quick Start
use Jxx0410\BundleSocial\OverseasSocial\Application;
$app = new Application([
'api_key' => 'YOUR_API_KEY',
'base_uri' => 'YOUR_BASE_URI',
]);
// Upload → Post workflow
$upload = $app->upload->create('/path/to/image.jpg', 'team_xxx');
$post = $app->post->create([
'teamId' => 'team_xxx',
'title' => 'Hello World',
'status' => 'SCHEDULED',
'postDate' => '2026-06-01T12:00:00Z',
'socialAccountTypes' => ['INSTAGRAM', 'YOUTUBE'],
'data' => [
'INSTAGRAM' => [
'text' => 'Hello from SDK!',
'type' => 'POST',
'uploadIds' => [$upload['id']],
],
],
]);
Services
| Service | Accessor | Description |
|---|---|---|
| Post | $app->post | Create, update, delete, list, retry posts |
| Upload | $app->upload | Upload files, streams, URLs; large file support |
| Team | $app->team | CRUD teams |
| Analytics | $app->analytics | Post/account analytics, bulk queries, raw data |
| Comment | $app->comment | CRUD comments |
| Social Account | $app->socialAccount | Connect, disconnect, portal links, channel management |
| Organization | $app->organization | Org info, posts/uploads/imports usage |
| Webhook | $app->webhook | Signature verification, event construction |
| Misc | $app->misc | Platform-specific operations (YouTube, LinkedIn, Reddit, etc.) |
| Post Import | $app->postImport | Import post history from platforms |
Supported Platforms
Instagram, YouTube, TikTok, Facebook, Twitter/X, LinkedIn, Reddit, Pinterest, Mastodon, Bluesky, Discord, Slack, Google Business, Threads
Documentation
- Quick Start Guide -- Get running in minutes
- API Reference -- Complete method reference
- Hyperf Integration -- Use with Hyperf framework
Error Handling
The SDK throws typed exceptions for HTTP errors:
| Exception | Status | Description |
|---|---|---|
BadRequestException | 400 | Invalid parameters |
UnauthorizedException | 401 | Invalid/missing API key |
ForbiddenException | 403 | Insufficient permissions |
NotFoundException | 404 | Resource not found |
RateLimitException | 429 | Rate limit exceeded |
ServerException | 5xx | Server error |
NetworkException | -- | Connection failure |
InvalidSignatureException | -- | Bad webhook signature |
Testing
composer test
composer test-unit
composer test-coverage
License
MIT
jxx0410/bundlesocial-php 适用场景与选型建议
jxx0410/bundlesocial-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「sdk」 「social-media」 「overseas-social」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jxx0410/bundlesocial-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jxx0410/bundlesocial-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jxx0410/bundlesocial-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
Facebook/Instagram API (META) integration for Silverstripe
Support Module from OMMU
This light package, with no dependencies, gives Eloquent models the ability to manage friendships (with groups). And interactions such as: Likes, favorites, votes, subscribe, follow, ..etc. And it includes advanced rating system.
Adds social media features to TYPO3 pages.
A simple inspired by socialite library for laravel to authenticate users and obtain data from instagram api.
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-17