Skip to content

1.0.0

Choose a tag to compare

@danielhe4rt danielhe4rt released this 17 Mar 06:24

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 channel
    • channel.subscription.new - Receive notifications for new subscriptions
    • channel.subscription.renewal - Get notified when subscriptions are renewed
    • channel.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 data
    • ChannelFollowedPayload - Process follow events with follower information
    • ChannelSubscriptionNewPayload - Handle new subscription events
    • ChannelSubscriptionRenewalPayload - Process subscription renewal events
    • ChannelSubscriptionGiftsPayload - Handle gifted subscription events
    • LivestreamStatusUpdatedPayload - Process stream start/end events
  • Entity Classes

    • KickWebhookUserEntity - Structured representation of Kick users in webhook payloads
    • KickWebhookEmoteEntity - Handle emotes in chat messages with position data
  • Webhook Processing

    • KickWebhookFactory - Create appropriate payload objects from webhook request data
    • KickWebhookVerifier - Verify webhook signatures to ensure authenticity
    • KickWebhookEventTypeEnum - 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.