I would like to be able to add members of our site

Hello

I would like to be able to add members of our site to a newsletter group using php. I cant find any way to do this. Is there a way to integrate?

Best regards