What is the best practice for handling JSON values from Webhooks in PHP?

When handling JSON values from Webhooks in PHP, it is best practice to use the `file_get_contents()` function to retrieve the raw JSON data from the incoming webhook request. After that, you should use the `json_decode()` function to convert the JSON data into a PHP associative array for easy manipulation.

// Retrieve the raw JSON data from the incoming webhook request
$json_data = file_get_contents('php://input');

// Convert the JSON data into a PHP associative array
$data = json_decode($json_data, true);

// Access the values from the JSON data
if(isset($data['key'])) {
    $value = $data['key'];
    // Perform actions with the value
}