I think the easiest way is to use OpenID Connect for PHP client/server, I just did a search and there are some libraries that could work.
Alternatively, you could look into using a 3rd-party sso provider on both platforms, and share the data from there.