Log user via PHP

Hi,
I would like to log in my Nextcloud app via PHP o JS using public API call…
It’s possibile to do? I can’t find anything about that…

Thanks