Is there any way to create a HmacSHA256 signature of a string in php?
Use hash_hmac:
hash_hmac
$sig = hash_hmac('sha256', $string, $secret);
Where $secret is your key.
$secret