Example PHP code to add a new site

Hello
I would like to allow users to add their sites to a Matomo server from another website.
Can someone point me to some example php code for adding sites?