๐ฏ
Could be a separated package which extends the nostr-php package ๐ค
Similar what @Djuri has done with the nostr-php-nwc package

GitHub
GitHub - dsbaars/nostr-php-nwc: Nostr Wallet Connect (NIP-47) implementation in PHP (nostr-php)
Nostr Wallet Connect (NIP-47) implementation in PHP (nostr-php) - dsbaars/nostr-php-nwc