How can I verify hmac in a webhook's handle using PHP CLI app?

Hello, I have used CLI PHP app template. I have implement the PHP logic to verify hmac in webhook’s handle using this link : https://shopify.dev/docs/apps/webhooks/configuration/https

  • Should I verify the webhook in the handle or I have to create a route for each mandatory webhook and verifies them in controller?