Handling hub.secret with PHP

$mySecret is the secret you used when you created the subscription.

https://dev.twitch.tv/docs/api/webhooks-reference#subscribe-tounsubscribe-from-events

aka hub.secret

And $data is $data = file_get_contents("php://input"); as shown in the post you linked.