Download the PHP package postproxy/postproxy-php without Composer
On this page you can find all versions of the php package postproxy/postproxy-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download postproxy/postproxy-php
More information about postproxy/postproxy-php
Files in postproxy/postproxy-php
Package postproxy-php
Short Description PHP client for the PostProxy API — manage social media posts, profiles, and profile groups.
License MIT
Homepage https://postproxy.dev
Informations about the package postproxy-php
PostProxy PHP SDK
PHP client for the PostProxy API — manage social media posts, profiles, and profile groups.
Requirements
- PHP >= 8.1
- Composer
Installation
Quick Start
Configuration
Resources
Posts
Queues
Webhooks
Signature verification
Verify incoming webhook signatures using HMAC-SHA256:
Event types and typed payloads
Subscribe to any of these events (or pass ["*"] for all):
post.processed, post.imported, platform_post.published, platform_post.failed, platform_post.failed_waiting_for_retry, platform_post.insights, profile.connected, profile.disconnected, profile.stats, media.failed, comment.created, profile_comment.created, message.received, message.sent, message.delivered, message.read, message.edited, message.deleted, message.failed_waiting_for_retry, message.failed, reaction.received.
WebhookEvents::parse validates the envelope and returns a typed Event — $event->data is the right model for the event. Direct-message events share three reusable payload shapes: the eight message.* events decode to MessageEventData (which wraps a Message), reaction.received decodes to ReactionEventData, and profile_comment.created decodes to ProfileCommentCreatedData:
Comments
Direct Messages
Manage one-to-one conversations (Facebook, Instagram, Telegram, Bluesky) through two resources: chats() for conversations and messages() for the messages within them.
Profile comments (Google Business reviews)
Profile-level comments expose Google Business reviews and replies. Reviews are user-generated — the SDK lets you list/get them and reply to or delete your own replies. Reviews sync twice daily.
Profiles
Profile Groups
Platform Parameters
Supported platforms: facebook, instagram, tiktok, linkedin, youtube, twitter, threads, pinterest, bluesky, telegram, google_business. Telegram requires a chat_id per post — list channels with $client->profiles()->placements($profileId).
Google Business
Google Business posts use the googleBusiness property on PlatformParams (a plain associative array). The location_id is the location resource path returned by $client->profiles()->placements(). Supported formats: standard, event, offer. CTA actions: LEARN_MORE, BOOK, ORDER, SHOP, SIGN_UP, CALL. Media is limited to one image (≤5 MB).
Error Handling
Development
License
MIT