@Morphoice As @Dan-Korneff says an existing license manager with your own endpoint for license file encryption is a good starting point.
@Christoph-Hart posted this php snippet a while ago which is easy to get you on track seeing you're comfortable with php
https://forum.hise.audio/topic/5369/build-failed-with-copy-protection-enabled/11?_=1730596423891