Repository navigation
1.0.0
Kick PHP SDK - Release Notes
Version 1.0.0 - Webhook Integration
We're excited to announce the release of the Kick PHP SDK with comprehensive webhook support! This release introduces a robust system for handling Kick.com webhooks, allowing developers to easily integrate real-time events from Kick into their PHP applications.
New Features
All the Base API provided by Kick
All the endpoints was implemented and you can check the examples.php file to learn more about. That includes:
- Streams
- PublicKey
- Chat
- Auth
- Users
- Events
Webhook Support
The SDK now provides complete webhook integration with Kick.com, supporting all current webhook event types:
-
Chat Events
chat.message.sent- Receive real-time chat messages from your channel
-
Channel Events
channel.followed- Get notified when someone follows your channelchannel.subscription.new- Receive notifications for new subscriptionschannel.subscription.renewal- Get notified when subscriptions are renewedchannel.subscription.gifts- Receive notifications for gifted subscriptions
-
Livestream Events
livestream.status.updated- Get notified when a stream starts or ends
Webhook Components
-
Payload Classes
ChatMessageSentPayload- Handle chat message events with sender, content, and emote dataChannelFollowedPayload- Process follow events with follower informationChannelSubscriptionNewPayload- Handle new subscription eventsChannelSubscriptionRenewalPayload- Process subscription renewal eventsChannelSubscriptionGiftsPayload- Handle gifted subscription eventsLivestreamStatusUpdatedPayload- Process stream start/end events
-
Entity Classes
KickWebhookUserEntity- Structured representation of Kick users in webhook payloadsKickWebhookEmoteEntity- Handle emotes in chat messages with position data
-
Webhook Processing
KickWebhookFactory- Create appropriate payload objects from webhook request dataKickWebhookVerifier- Verify webhook signatures to ensure authenticityKickWebhookEventTypeEnum- Enum for all supported webhook event types
Comprehensive Testing
The SDK includes extensive test coverage for all webhook components:
- Unit tests for all payload types
- Tests for entity creation and serialization
- Tests for webhook verification
- Tests for event type handling
- Tests for webhook factory functionality
Requirements
- PHP 8.1 or higher
- ext-json
- GuzzleHttp 7.0 or higher
What's Next
We're continuously working to improve the SDK and add more features. Future updates will include:
- Support for additional Kick API endpoints
- Enhanced error handling and logging
- More comprehensive documentation
- Additional helper methods for common tasks
Feedback and Contributions
We welcome feedback and contributions! Please submit issues and pull requests on our GitHub repository.