I am not familiar with PHP. As far as I know, Microsoft does not provide a PHP sample of the update event. However, code snippets in other languages are provided. You can refer to these code snippets to use PHP update events, their logic is the same.
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.